Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3463393pxk; Mon, 28 Sep 2020 19:28:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw1g3h1YSBQ/Bt3Hav+bND2k5y+AlZEwGwM0Zlxa62oVq+9WmOnQm1UxfcDzqAbnuFr0X+Z X-Received: by 2002:a17:906:1909:: with SMTP id a9mr1614947eje.127.1601346525494; Mon, 28 Sep 2020 19:28:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601346525; cv=none; d=google.com; s=arc-20160816; b=g4x4IJwWp7HADgg/qpL35PPwjtBKtQYdBrd0P5DBh1Q3ltBtonRRyTnHDnSU2QclEi XgGzMvk95bmW0KO0sSKofDHTvF7mgR1Plh2Jy3M9KjVib8eRnOWE4NHkxj09DDqHuv2I SH2Iy1B+5aILJJmLo5Q81fhP6AI7BpdgPKG5uehyDplm9OervUawxMPbnJgiS4FlgT/m OyatbzIxYjjzsmfW3dZqhzPlJdE4TkGgrSvERz+ewG+pSYOUYl45DkNgx5CweiIHe3qP Who5qLwYoib6CY8fLRvKyAWWuQkCmZMFTB9p/hz9nHZ/rXM7HPlYzKtOu1vigDr9cAqS lt6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=U9MqgZJex5t9kfdLau6bz4MFN/0a9JiBawa6UAPwaxI=; b=lwjvilGPyeoUo2dp4rZvD1/smAxJwHl4VzYa0QM/uVM5JbfQtnOHFe5JqVCItm+rcX 6cVYYM0/o6/sk+nds7fYt9pHVN/cRHiCXz2iwam3aEU211rAEj7P7ArTD8q03xT5ATLN cqjNzJ1A8s6dtM7XTMuNXkwfcZnigkv1AHtHlmskly2HSVyf0nsvpuAAORjkE6OdzaT7 FBP4jIXDPs819vIgcM0AlZ2q1Pfzufjpd3HdTjQxOK0K5LEPVI+76IUpujhH088gmPrp jJgEhnXJep9VLUuRrbuhDniLCs2EiKTy+tvMKD/qWMb3OLi8/lqlqiSfHCbWyRXuVDUq DYdQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i7si883317edj.22.2020.09.28.19.28.09; Mon, 28 Sep 2020 19:28:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727186AbgI2CZS (ORCPT + 99 others); Mon, 28 Sep 2020 22:25:18 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:43902 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726522AbgI2CZS (ORCPT ); Mon, 28 Sep 2020 22:25:18 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 0C7B2C0EE627B64DE7D2; Tue, 29 Sep 2020 10:25:15 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.487.0; Tue, 29 Sep 2020 10:25:04 +0800 From: Jing Xiangfeng To: , , CC: , , Subject: [PATCH] scsi: myrb: remove redundant assignment to variable timeout Date: Tue, 29 Sep 2020 10:24:58 +0800 Message-ID: <20200929022458.40652-1-jingxiangfeng@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The variable timeout has been initialized with a value '0'. The assignment before while loop is redundant. So remove it. Signed-off-by: Jing Xiangfeng --- drivers/scsi/myrb.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/scsi/myrb.c b/drivers/scsi/myrb.c index b2869c5dd7fb..687a808969ac 100644 --- a/drivers/scsi/myrb.c +++ b/drivers/scsi/myrb.c @@ -2732,7 +2732,6 @@ static int DAC960_LA_hw_init(struct pci_dev *pdev, DAC960_LA_disable_intr(base); DAC960_LA_ack_hw_mbox_status(base); udelay(1000); - timeout = 0; while (DAC960_LA_init_in_progress(base) && timeout < MYRB_MAILBOX_TIMEOUT) { if (DAC960_LA_read_error_status(base, &error, -- 2.17.1