Skip to contentSkip to conversation

ibmvscsi:Fix comment about return values for the function ibmvfc_target_alloc

PATCH Tyrel Datwyler 1 participant 1 message Jul 17, 2015 1 message not in the archive SCSI

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Tyrel Datwyler

author Acked-by
#1 lore raw
Quoted 7 lines · Nicholas Krause

This fixes the comment about return values for the function ibmvfc_target_alloc to correctly state it only returns zero as it always runs successfully and therefore never signals its caller with the error code -ENXIO due to this exact reasoning.

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,

Quoted 18 lines
---
 drivers/scsi/ibmvscsi/ibmvfc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/ibmvscsi/ibmvfc.c +1 -1
index 057d277..55f161b 100644
@@ -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)
 {