[PATCH] scsi: scsi_lib: Correct the description of the return value for scsi_device_quiesce()

Miao Li posted 1 patch 1 week ago
drivers/scsi/scsi_lib.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] scsi: scsi_lib: Correct the description of the return value for scsi_device_quiesce()
Posted by Miao Li 1 week ago
From: Miao Li <limiao@kylinos.cn>

if scsi_device_quiesce() returns zero, the function executed successfully.

Signed-off-by: Miao Li <limiao@kylinos.cn>
---
 drivers/scsi/scsi_lib.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c
index d7e42293b864..072d477b8f4b 100644
--- a/drivers/scsi/scsi_lib.c
+++ b/drivers/scsi/scsi_lib.c
@@ -2735,7 +2735,7 @@ EXPORT_SYMBOL_GPL(sdev_evt_send_simple);
  *
  *	Must be called with user context, may sleep.
  *
- *	Returns zero if unsuccessful or an error if not.
+ *	Returns zero if successful or an error if not.
  */
 int
 scsi_device_quiesce(struct scsi_device *sdev)
-- 
2.25.1
Re: [PATCH] scsi: scsi_lib: Correct the description of the return value for scsi_device_quiesce()
Posted by Martin K. Petersen 2 days, 4 hours ago
Miao,

> if scsi_device_quiesce() returns zero, the function executed
> successfully.

Applied to 6.19/scsi-staging, thanks!

-- 
Martin K. Petersen
Re: [PATCH] scsi: scsi_lib: Correct the description of the return value for scsi_device_quiesce()
Posted by Johannes Thumshirn 1 week ago
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>