mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: chenguohua@jari.cn
To: jejb@linux.ibm.com, martin.petersen@oracle.com
Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] scsi: esp_scsi: Clean up errors in esp_scsi.c
Date: Wed, 27 Sep 2023 16:03:43 +0800 (GMT+08:00)	[thread overview]
Message-ID: <234008e6.887.18ad5aa5094.Coremail.chenguohua@jari.cn> (raw)

Fix the following errors reported by checkpatch:

ERROR: space required after that ',' (ctx:VxV)
ERROR: need consistent spacing around '<<' (ctx:WxV)

Signed-off-by: GuoHua Cheng <chenguohua@jari.cn>
---
 drivers/scsi/esp_scsi.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/scsi/esp_scsi.c b/drivers/scsi/esp_scsi.c
index 97816a0e6240..56cfbd9e0a88 100644
--- a/drivers/scsi/esp_scsi.c
+++ b/drivers/scsi/esp_scsi.c
@@ -114,7 +114,7 @@ do {   if (esp_debug & ESP_DEBUG_COMMAND)	\
 } while (0)
 
 #define esp_read8(REG)		esp->ops->esp_read8(esp, REG)
-#define esp_write8(VAL,REG)	esp->ops->esp_write8(esp, VAL, REG)
+#define esp_write8(VAL, REG)	esp->ops->esp_write8(esp, VAL, REG)
 
 static void esp_log_fill_regs(struct esp *esp,
 			      struct esp_event_ent *p)
@@ -543,7 +543,7 @@ static u32 esp_dma_length_limit(struct esp *esp, u32 dma_addr, u32 dma_len)
 		base = dma_addr & ((1U << 24) - 1U);
 		end = base + dma_len;
 		if (end > (1U << 24))
-			end = (1U <<24);
+			end = (1U << 24);
 		dma_len = end - base;
 	}
 	return dma_len;
-- 
2.17.1

                 reply	other threads:[~2023-09-27  8:05 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=234008e6.887.18ad5aa5094.Coremail.chenguohua@jari.cn \
    --to=chenguohua@jari.cn \
    --cc=jejb@linux.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=martin.petersen@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®