From: Hannes Reinecke Date: Fri, 25 Aug 2017 11:56:56 +0000 (+0200) Subject: scsi: fix comment in scsi_device_set_state() X-Git-Tag: android-x86-8.1-r1~2674^2~57 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=23cb27fd679cec8322a376c046dc79b47c30bbd4;p=android-x86%2Fkernel.git scsi: fix comment in scsi_device_set_state() The function returns '0' if successful; with the original comment the function doesn't have a way to indicate success ... Signed-off-by: Hannes Reinecke Reviewed-by: Bart van Assche Reviewed-by: Christoph Hellwig Reviewed-by: Johannes Thumshirn Signed-off-by: Martin K. Petersen --- diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index 0270b35f7680..76adec714189 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c @@ -2548,7 +2548,7 @@ EXPORT_SYMBOL(scsi_test_unit_ready); * @sdev: scsi device to change the state of. * @state: state to change to. * - * Returns zero if unsuccessful or an error if the requested + * Returns zero if successful or an error if the requested * transition is illegal. */ int