diff options
author | 2017-07-28 12:30:47 +0200 | |
---|---|---|
committer | 2017-08-10 19:36:52 -0400 | |
commit | 7d91869c73f8d4ec905903a5c61ba2b5eb1e7164 (patch) | |
tree | fea64a4269bd762cd26fb170430b906d8ab94675 /drivers/s390/scsi/zfcp_qdio.h | |
parent | scsi: libcxgbi: use ndev->ifindex to find route (diff) | |
download | linux-7d91869c73f8d4ec905903a5c61ba2b5eb1e7164.tar.gz linux-7d91869c73f8d4ec905903a5c61ba2b5eb1e7164.tar.bz2 linux-7d91869c73f8d4ec905903a5c61ba2b5eb1e7164.zip |
scsi: zfcp: replace zfcp_qdio_sbale_count by sg_nents
The zfcp_qdio_sbale_count function do the same work than sg_nents().
So replace it by sg_nents() for removing duplicate code.
Signed-off-by: LABBE Corentin <clabbe.montjoie@gmail.com>
Signed-off-by: Steffen Maier <maier@linux.vnet.ibm.com>
Signed-off-by: Benjamin Block <bblock@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/s390/scsi/zfcp_qdio.h')
-rw-r--r-- | drivers/s390/scsi/zfcp_qdio.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/s390/scsi/zfcp_qdio.h b/drivers/s390/scsi/zfcp_qdio.h index 497cd379b0d1..85cdb82127e8 100644 --- a/drivers/s390/scsi/zfcp_qdio.h +++ b/drivers/s390/scsi/zfcp_qdio.h @@ -225,21 +225,6 @@ void zfcp_qdio_set_data_div(struct zfcp_qdio *qdio, } /** - * zfcp_qdio_sbale_count - count sbale used - * @sg: pointer to struct scatterlist - */ -static inline -unsigned int zfcp_qdio_sbale_count(struct scatterlist *sg) -{ - unsigned int count = 0; - - for (; sg; sg = sg_next(sg)) - count++; - - return count; -} - -/** * zfcp_qdio_real_bytes - count bytes used * @sg: pointer to struct scatterlist */ |