mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: chenguohua@jari.cn
To: hare@suse.com, jejb@linux.ibm.com, martin.petersen@oracle.com
Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] scsi: aic7xxx: Clean up errors in aicasm.c
Date: Wed, 27 Sep 2023 15:14:11 +0800 (GMT+08:00)	[thread overview]
Message-ID: <5e399c83.87e.18ad57cf98b.Coremail.chenguohua@jari.cn> (raw)

Fix the following errors reported by checkpatch:

ERROR: return is not a function, parentheses are not required
ERROR: space required before the open parenthesis '('

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

diff --git a/drivers/scsi/aic7xxx/aicasm/aicasm.c b/drivers/scsi/aic7xxx/aicasm/aicasm.c
index a22f0fffc9b9..2f74618d0038 100644
--- a/drivers/scsi/aic7xxx/aicasm/aicasm.c
+++ b/drivers/scsi/aic7xxx/aicasm/aicasm.c
@@ -97,7 +97,7 @@ FILE *regdiagfile;
 int   src_mode;
 int   dst_mode;
 
-static STAILQ_HEAD(,instruction) seq_program;
+static STAILQ_HEAD(, instruction) seq_program;
 struct cs_tailq cs_tailq;
 struct scope_list scope_stack;
 symlist_t patch_functions;
@@ -144,7 +144,7 @@ main(int argc, char *argv[])
 	mmdebug = 0;
 #endif
 	while ((ch = getopt(argc, argv, "d:i:l:n:o:p:r:I:")) != -1) {
-		switch(ch) {
+		switch (ch) {
 		case 'd':
 #if DEBUG
 			if (strcmp(optarg, "s") == 0) {
@@ -301,7 +301,7 @@ main(int argc, char *argv[])
 
 	stop(NULL, 0);
 	/* NOTREACHED */
-	return (0);
+	return 0;
 }
 
 static void
@@ -674,9 +674,9 @@ check_patch(patch_t **start_patch, int start_instr,
 	*start_patch = cur_patch;
 	if (start_instr < *skip_addr)
 		/* Still skipping */
-		return (0);
+		return 0;
 
-	return (1);
+	return 1;
 }
 
 /*
-- 
2.17.1

                 reply	other threads:[~2023-09-27  7:15 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=5e399c83.87e.18ad57cf98b.Coremail.chenguohua@jari.cn \
    --to=chenguohua@jari.cn \
    --cc=hare@suse.com \
    --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®