From patchwork Mon Oct 10 15:25:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Lei X-Patchwork-Id: 9369625 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4182A607FD for ; Mon, 10 Oct 2016 15:25:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3277928C97 for ; Mon, 10 Oct 2016 15:25:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 26A0428DEB; Mon, 10 Oct 2016 15:25:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C046D28C97 for ; Mon, 10 Oct 2016 15:25:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753112AbcJJPZl (ORCPT ); Mon, 10 Oct 2016 11:25:41 -0400 Received: from mail-pa0-f68.google.com ([209.85.220.68]:35954 "EHLO mail-pa0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752553AbcJJPZj (ORCPT ); Mon, 10 Oct 2016 11:25:39 -0400 Received: by mail-pa0-f68.google.com with SMTP id rw4so2579099pab.3; Mon, 10 Oct 2016 08:25:39 -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=8J6sXHDcupkp/anhhLAz477E7RM4DAeOWiq4Zt7/lmA=; b=B/klVmH0w1SkbBVbDpOpjgoDWeGgUDCujx8mS8SXV/EX+cMpc6TqXg5bLBi32J5U3I wMhe6c3S0KjApAOJqwDynw+AgQfUgN9jb645nhLINpTAayhT6jE078hMuYcIpLmzBWYv bZlwCIBNTHmhyjqFVrIw65K85wHMARLXtWG9SNPkHB5qbikZ31Rqhfh0krtLvfZEo/kk iWvO2+I9n1XTRRU0gWtc+36CbYqQQdcOWHtKHUIdsmo+69pyCOlVCwMexjsVxfVA4Pyo SbgVKjzuzd5tZ2FS59yiI12vHwt1aA0eNIorWZqw5TlTQNMEeUSQ3opkqBqyr0aIT8Bb mA1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=8J6sXHDcupkp/anhhLAz477E7RM4DAeOWiq4Zt7/lmA=; b=OaGY8utyOe8V++8tW/iJBR5Y3I6JUAG00kkKaaeBPqAvuMzmh8uRxgtG778Q2k3H3S 1nnlqNS7v7qtnZPJ77CoK1YRyo/ot31F8BRbC5dgS0c+07JqzodRIHvky5Dra05q8y0g 9e77r3wz1/0L382c5ddVzqeQWipm783TYxxpXlsT5O2xGw8w7+rqY4PCHYzn6cyRS4QQ tpWf4q1xl74TWRE3KTDOIpnV0b+9m7pPa5S6zN4puzIrSeok/poiKaUP96JowvJFJLXH tj2l1OqeZ/u8l1OOqfUL0rKkUnqhhejzyCH43aZkiDC4WkBDzZElaKih1x49ZHCdlG6l rnUQ== X-Gm-Message-State: AA6/9RllZEK2umfOh2GE67S3wrkZKa870N97GWKs8qoZ+xkyig+IV6EdYGGbphPxwRJirw== X-Received: by 10.66.156.229 with SMTP id wh5mr15597572pab.137.1476113138997; Mon, 10 Oct 2016 08:25:38 -0700 (PDT) Received: from localhost ([45.34.23.101]) by smtp.gmail.com with ESMTPSA id vo3sm59679713pab.26.2016.10.10.08.25.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Oct 2016 08:25:38 -0700 (PDT) From: Ming Lei To: linux-kernel@vger.kernel.org Cc: Ming Lei , Christoph Hellwig , "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org (open list:SCSI SUBSYSTEM) Subject: [PATCH] SCSI: remove one useless stack variable Date: Mon, 10 Oct 2016 23:25:33 +0800 Message-Id: <1476113133-24092-1-git-send-email-tom.leiming@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The local variable of 'devname' in scsi_report_lun_scan() isn't used any more, so remove it. Cc: Christoph Hellwig Signed-off-by: Ming Lei Reviewed-by: Christoph Hellwig --- drivers/scsi/scsi_scan.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/scsi/scsi_scan.c b/drivers/scsi/scsi_scan.c index bb9b58e21d95..6f7128f49c30 100644 --- a/drivers/scsi/scsi_scan.c +++ b/drivers/scsi/scsi_scan.c @@ -1307,7 +1307,6 @@ static void scsi_sequential_lun_scan(struct scsi_target *starget, static int scsi_report_lun_scan(struct scsi_target *starget, int bflags, enum scsi_scan_mode rescan) { - char devname[64]; unsigned char scsi_cmd[MAX_COMMAND_SIZE]; unsigned int length; u64 lun; @@ -1349,9 +1348,6 @@ static int scsi_report_lun_scan(struct scsi_target *starget, int bflags, } } - sprintf(devname, "host %d channel %d id %d", - shost->host_no, sdev->channel, sdev->id); - /* * Allocate enough to hold the header (the same size as one scsi_lun) * plus the number of luns we are requesting. 511 was the default