ibmvscsi:Fix comment about return values for the function ibmvfc_target_alloc
Tyrel Datwyler
Acked-byQuoted 7 lines · Nicholas Krause
This fixes the comment about return values for the function
ibmvfc_target_allocto correctly state it only returns zero as it always runs successfully and therefore never signals its caller with the error code-ENXIOdue to this exact reasoning.Signed-off-by Nicholas Krause <[email protected]>
Again, just a nit on the patch description wording. Something like the following would suffice.
"Remove mention of -ENXIO from comment on return values for ibmvfc_slave_alloc() as the function currently always returns 0."
Otherwise,
Acked-by Tyrel Datwyler <[email protected]>
Quoted 18 lines
--- drivers/scsi/ibmvscsi/ibmvfc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/scsi/ibmvscsi/ibmvfc.c +1
-1@@ -2854,7 +2854,7 @@ static int ibmvfc_slave_alloc(struct scsi_device *sdev)* expected. * * Returns: -* 0 on success / -ENXIO if device does not exist +* 0 on success **/ static int ibmvfc_target_alloc (struct scsi_target *starget) {