]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
scsi: libiscsi: Fix spelling and format errors
authorWang Yan <wangyan01@kylinos.cn>
Mon, 11 May 2026 09:30:30 +0000 (17:30 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 15 May 2026 02:01:20 +0000 (22:01 -0400)
Fix two issues in libiscsi.c:

 - Correct typo "numer" to "number" in iscsi_session_setup() comment

 - Fix format string "seconds\n." to "seconds.\n" in recv timeout
   warning

Signed-off-by: Wang Yan <wangyan01@kylinos.cn>
Reviewed-by: Mike Christie <michael.christie@oracle.com>
Reviewed-by: Chris Leech <cleech@redhat.com>
Link: https://patch.msgid.link/20260511093030.63542-1-wangyan01@kylinos.cn
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/libiscsi.c

index 25857d6ed6e846bfb908489b046ab726a0113a7d..160f02f2f51d1c195d6fe5e2bcaf213b5f98a129 100644 (file)
@@ -3012,7 +3012,7 @@ static void iscsi_host_dec_session_cnt(struct Scsi_Host *shost)
  * This can be used by software iscsi_transports that allocate
  * a session per scsi host.
  *
- * Callers should set cmds_max to the largest total numer (mgmt + scsi) of
+ * Callers should set cmds_max to the largest total number (mgmt + scsi) of
  * tasks they support. The iscsi layer reserves ISCSI_MGMT_CMDS_MAX tasks
  * for nop handling and login/logout requests.
  */
@@ -3307,7 +3307,7 @@ int iscsi_conn_start(struct iscsi_cls_conn *cls_conn)
 
        if (conn->ping_timeout && !conn->recv_timeout) {
                iscsi_conn_printk(KERN_ERR, conn, "invalid recv timeout of "
-                                 "zero. Using 5 seconds\n.");
+                                 "zero. Using 5 seconds.\n");
                conn->recv_timeout = 5;
        }