linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rudhresh <rudhresh.jk@gmail.com>
To: schmitzmic@gmail.com
Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org,
	Rudhresh <rudhresh.jk@gmail.com>,
	Rudhresh Kumar J <rudhreshj@cdac.in>
Subject: [PATCH] SCSI: DTC: Removed 0 initialization for statics
Date: Mon, 29 Jun 2015 00:18:05 +0530	[thread overview]
Message-ID: <1435517285-13411-1-git-send-email-rudhresh.jk@gmail.com> (raw)

Removed unneccessary initialization of zero to a static variable

Signed-off-by: Rudhresh Kumar J <rudhreshj@cdac.in>
---
 drivers/scsi/dtc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/scsi/dtc.c b/drivers/scsi/dtc.c
index 4c74c7b..99164d6 100644
--- a/drivers/scsi/dtc.c
+++ b/drivers/scsi/dtc.c
@@ -150,7 +150,7 @@ static const struct signature {
 
 static int __init dtc_setup(char *str)
 {
-	static int commandline_current = 0;
+	static int commandline_current;
 	int i;
 	int ints[10];
 
@@ -188,7 +188,7 @@ __setup("dtc=", dtc_setup);
 
 static int __init dtc_detect(struct scsi_host_template * tpnt)
 {
-	static int current_override = 0, current_base = 0;
+	static int current_override, current_base;
 	struct Scsi_Host *instance;
 	unsigned int addr;
 	void __iomem *base;
-- 
1.8.4.5


             reply	other threads:[~2015-06-28 18:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-28 18:48 Rudhresh [this message]
2015-08-25  1:54 ` [PATCH] SCSI: DTC: Removed 0 initialization for statics Finn Thain

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=1435517285-13411-1-git-send-email-rudhresh.jk@gmail.com \
    --to=rudhresh.jk@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=rudhreshj@cdac.in \
    --cc=schmitzmic@gmail.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;
as well as URLs for NNTP newsgroup(s).