From patchwork Sun Jun 28 18:48:05 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rudhresh X-Patchwork-Id: 6686671 Return-Path: X-Original-To: patchwork-linux-scsi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id CFE8B9F1C1 for ; Sun, 28 Jun 2015 18:48:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F3706205DE for ; Sun, 28 Jun 2015 18:48:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AEC7220430 for ; Sun, 28 Jun 2015 18:48:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752570AbbF1SsT (ORCPT ); Sun, 28 Jun 2015 14:48:19 -0400 Received: from mail-pd0-f180.google.com ([209.85.192.180]:33011 "EHLO mail-pd0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752560AbbF1SsS (ORCPT ); Sun, 28 Jun 2015 14:48:18 -0400 Received: by pdjn11 with SMTP id n11so103677128pdj.0; Sun, 28 Jun 2015 11:48:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=po5fEQoRy4ofKGSFUei2luio1RG8jW+9qpoelbNaYs0=; b=y1LH0Wjfp0tuHOyuya4fswMOvhKY3TViisKpIaQRItwj3cseijEjPjo/QlW2xiR9UD I832P9yxNixe86Lw6ukFsczaEjHJmo7mRq4lpVL8LQSFkvY42mzucW9F+VJfKM7g9ZOJ kRKCiAXpslxB2mWEePE45tDjvQiesWOa6t4FhyooD3kO85knxMV0Z0rA7+yAUw7mxjLN HxAYK1qSAtQ/jlLkszJlDiMjO7lqYQ5TUp6f5lBVjmFpx7qTdJlKB+xtbqcSmOfxxcSM oDMylo9W9pZ2rGsmFWtQ1k46Pwvl6IPTsqtXqjcNDUpcCsVkuOiCAwAPubCw+EYen/Oo R6DQ== X-Received: by 10.68.203.197 with SMTP id ks5mr24312457pbc.51.1435517297345; Sun, 28 Jun 2015 11:48:17 -0700 (PDT) Received: from linux-9mst.site.mshome.net ([117.250.1.240]) by mx.google.com with ESMTPSA id ez4sm5547550pbb.13.2015.06.28.11.48.13 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 28 Jun 2015 11:48:15 -0700 (PDT) From: Rudhresh To: schmitzmic@gmail.com Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Rudhresh , Rudhresh Kumar J Subject: [PATCH] SCSI: DTC: Removed 0 initialization for statics Date: Mon, 29 Jun 2015 00:18:05 +0530 Message-Id: <1435517285-13411-1-git-send-email-rudhresh.jk@gmail.com> X-Mailer: git-send-email 1.8.4.5 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Removed unneccessary initialization of zero to a static variable Signed-off-by: Rudhresh Kumar J --- 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;