From patchwork Wed Apr 29 15:40:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin King X-Patchwork-Id: 11517805 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2F46E912 for ; Wed, 29 Apr 2020 15:41:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 21B922073E for ; Wed, 29 Apr 2020 15:41:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726776AbgD2PlA (ORCPT ); Wed, 29 Apr 2020 11:41:00 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:35756 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726519AbgD2PlA (ORCPT ); Wed, 29 Apr 2020 11:41:00 -0400 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jTopT-0004nr-Du; Wed, 29 Apr 2020 15:40:55 +0000 From: Colin King To: Jack Wang , "James E . J . Bottomley" , "Martin K . Petersen" , linux-scsi@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] scsi: pm80xx: remove redundant assignments to status Date: Wed, 29 Apr 2020 16:40:55 +0100 Message-Id: <20200429154055.286617-1-colin.king@canonical.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org From: Colin Ian King The variable status is being assigned with a value that is never read hence the assignment is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King --- drivers/scsi/pm8001/pm80xx_hwi.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/scsi/pm8001/pm80xx_hwi.c b/drivers/scsi/pm8001/pm80xx_hwi.c index 4d205ebaee87..f5e36375a68f 100644 --- a/drivers/scsi/pm8001/pm80xx_hwi.c +++ b/drivers/scsi/pm8001/pm80xx_hwi.c @@ -235,7 +235,6 @@ ssize_t pm80xx_get_fatal_dump(struct device *cdev, pm8001_ha->forensic_fatal_step = 1; pm8001_ha->fatal_forensic_shift_offset = 0; pm8001_ha->forensic_last_offset = 0; - status = 0; offset = (int) ((char *)pm8001_ha->forensic_info.data_buf.direct_data - (char *)buf); @@ -258,7 +257,6 @@ ssize_t pm80xx_get_fatal_dump(struct device *cdev, forensic_info.data_buf.direct_data, "%08x ", *(temp + index)); } - status = 0; offset = (int) ((char *)pm8001_ha->forensic_info.data_buf.direct_data - (char *)buf); @@ -285,7 +283,6 @@ ssize_t pm80xx_get_fatal_dump(struct device *cdev, pm8001_cw32(pm8001_ha, 0, MEMBASE_II_SHIFT_REGISTER, pm8001_ha->fatal_forensic_shift_offset); pm8001_ha->fatal_bar_loc = 0; - status = 0; offset = (int) ((char *)pm8001_ha->forensic_info.data_buf.direct_data - (char *)buf);