scsi: zfcp: replace zfcp_qdio_sbale_count by sg_nents
authorLABBE Corentin <clabbe.montjoie@gmail.com>
Fri, 28 Jul 2017 10:30:47 +0000 (12:30 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 10 Aug 2017 23:36:52 +0000 (19:36 -0400)
commit7d91869c73f8d4ec905903a5c61ba2b5eb1e7164
treefea64a4269bd762cd26fb170430b906d8ab94675
parent4737c5a0676218000e9c8874ea9ecbc9916fa278
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>
drivers/s390/scsi/zfcp_fsf.c
drivers/s390/scsi/zfcp_qdio.h