Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp307069rdb; Thu, 18 Jan 2024 04:21:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IFbMgPE3B3rhEE7lIx7YUOwyOd7GxthCSSBB4xQLAiOJ+bjiQCfcqwNJNR7eBDAdn9CjyUn X-Received: by 2002:a17:907:c20d:b0:a27:5fd1:791f with SMTP id ti13-20020a170907c20d00b00a275fd1791fmr2928658ejc.0.1705580512645; Thu, 18 Jan 2024 04:21:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705580512; cv=pass; d=google.com; s=arc-20160816; b=ImrPEoianZis0XSLpxseqYEilkFaMqmxAe9/p2cWI8BYRX9OCmC+/SoVJxvkXIM2Wh BGrLA7BEhbGilMRX5wqywDZlZwc/8WXLGGqj7IrxSE6fs3+15uB1ke/qytfkQBUghi08 mBd5Vkv5aPVS3pb+C38OXJhFGb7Wc2y0aXuaYS1G+8xVPcOjuOZ0CbhE1CRELqkgjpYz z7bglxw6NQ/DHA+r+lNP+mzeubpJoDhpBc1NbdGJxwecthUxvorfMNOHe9SMMdUz+yyS OEQmeMBheViVkgjLe6v3pxLhwSb3zIGkspE39s+BdgIQc6hgUQcZfXkRrF5sovToI7Cb 9c2A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=jl/QSyVeENwFqZo45P+/HN9QAR9bTLqt+HneRrWN0b4=; fh=RwHrP+yzQcF7E2zGKmz6p3gdA0AnBzfwsZWUV5hs/0U=; b=PYa5s+9gDr6fc8vCqVQDS5wtUA8+HGW+iHgJ63e18Cpxeb6B3GzFz6tCEuLSCrHVxq AuS5h/l3BzOB71pd+fWNCzOOByEebZwc7oKb1ZLTKtq+TcQ14IrP32BffSagcsgLhBOb GG5Kuo3V2KWhlM3ktT8GuvSjIqoQ+7fsd9clDvxreTLGNEhy1Y2xs4NYtnJYuvSpz2Z9 v/dtqd3OKvNzGOqvpzODqopoaIDyMwVunJCsiRBzkUgvgiXc2rJhfQAhdiTr/BZt60Qw yGcc7A/FqB2gJXE4BcgisQXCjB6bDr75SYmbFnhSP17K8YOrsV2j4I9XFG5VghysLX3X WK6Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=VDgY2O6t; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-30084-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30084-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ks13-20020a170906f84d00b00a2f49f463fcsi46720ejb.230.2024.01.18.04.21.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 04:21:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-30084-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=VDgY2O6t; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-30084-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30084-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 0E9CF1F26A2B for ; Thu, 18 Jan 2024 12:15:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2251524A1E; Thu, 18 Jan 2024 12:14:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="VDgY2O6t" Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0451121A12; Thu, 18 Jan 2024 12:14:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705580086; cv=none; b=D8NCYyQfcVw4My2oiu+cuNeuug3MnGD51lW4vrfYnpO8ABHOdH5ld07Lw4ohPf2FOmAVsWJ/fSt5yiGWJyHwhRWn4ECaKVwD5/ewJp1FRiBu/TEpzx5EHhFpneXWrT5aruJ+Sw4ly10f34jSO0ISZWUdqDUQ7lA6T0Q7Nz1Tzek= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705580086; c=relaxed/simple; bh=djjsCtBMT3J7UQOghwFQYVRaBkgwuoLsuZnOcqi4QpI=; h=Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Google-Smtp-Source:X-Received:Received:From: To:Cc:Subject:Date:Message-Id:X-Mailer:MIME-Version:Content-Type: Content-Transfer-Encoding; b=H2pzjd4CAcDTvr5GrPJBwJe9byieXE/p0JDFOeorU2BtxKGSeVnw302S28nhxfnhd2oyDk0A2YvDgFMe0p+3ZpWhPd4p93ki1REJIsWgwCUIgp/mNJfozrvrvRZVpb9IFVZB1/stTVDpdfgDWImSQw0nXm5kr2/bWlQpWzH9bJw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=VDgY2O6t; arc=none smtp.client-ip=209.85.221.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-3376555b756so391909f8f.0; Thu, 18 Jan 2024 04:14:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705580083; x=1706184883; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=jl/QSyVeENwFqZo45P+/HN9QAR9bTLqt+HneRrWN0b4=; b=VDgY2O6t8TdVP4MrzqqVuzPKVEEBTfJFaS/EjrLgrUjBWNWFlV5ZVhow/V9e3ZdKsq OaCmjOFq8CRse0IBpVlW+ebWkph5zl6EO9hJFlJzvtG+IwlMYztNyLwFkn+hLsjLWrGF aPvjqk72GryflMsi4F9IuPdZU4/fAPD/s9ijQUUf1YD6Wu0XiSfwhiufXBuvVojOCYIB gyBuQz/zrWPE6HOj7vQB9i6vXM66v5aPt6eDnm/6JA3n65pATT5ryEm6172kuJvwjuER pmuIXnaLeoEORGD5Jx7l8L1uc1VPb4bEX1s61+8x2KY/4lZsxmE3dcZNoBdJEp3F+64Q msFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705580083; x=1706184883; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=jl/QSyVeENwFqZo45P+/HN9QAR9bTLqt+HneRrWN0b4=; b=iXBx+EhzeNDDziRcRy/VzKfGKrgaJdJcsuXKCDY6jdSP+FM++OclDfVLZw3rbXmxdh RQT9DWYGlXgFHSwITSaSxBteHMHUG1PfwCQcIQHIKGKK8+WxHR6IFM6GqhsSg/5UN61k FUYN15AVDRMPxoDdQ5rC2d/V7H10q3o6WHwvB4bWIoIKesj+PYycgqhhw4whWm0Fm4Zm PomrPT//Ddc6wZojzT2jNtoDJR8yqDo+Jkf5U+Iue1qrOgIHJY+yYY96n7Xmj7JQ31yw Qu0qcZufdE37u71OsKp+YUHcovMQoWjTGgcILkS6Upj8ij8R1L/3I9QtB9JrPzqklq57 LFoA== X-Gm-Message-State: AOJu0Yy2NOqfiJkVhYkmuylid56L4RMQjBNrpeMr8QyqllHU7TL2kbCm 3xl7RUUsCMYi0Kl8qm317tgW+YIa1eVSKmrAbTk4bRd/dUh4sApp X-Received: by 2002:a5d:6d47:0:b0:337:6208:99df with SMTP id k7-20020a5d6d47000000b00337620899dfmr486497wri.20.1705580083143; Thu, 18 Jan 2024 04:14:43 -0800 (PST) Received: from localhost (cpc154979-craw9-2-0-cust193.16-3.cable.virginm.net. [80.193.200.194]) by smtp.gmail.com with ESMTPSA id y14-20020a5d4ace000000b00337bfc796a6sm3920976wrs.87.2024.01.18.04.14.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 04:14:42 -0800 (PST) From: Colin Ian King To: Kashyap Desai , Sumit Saxena , Shivasharan S , Chandrakanth patil , "James E . J . Bottomley" , "Martin K . Petersen" , megaraidlinux.pdl@broadcom.com, linux-scsi@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH][next] scsi: megaraid: remove redundant assignment to variable retval Date: Thu, 18 Jan 2024 12:14:41 +0000 Message-Id: <20240118121441.2533620-1-colin.i.king@gmail.com> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit The variable retval is being assigned a value that is not being read afterwards. The assignment is redundant and can be removed. Cleans up clang scan warning: Although the value stored to 'retval' is used in the enclosing expression, the value is never actually read from 'retval' [deadcode.DeadStores] Signed-off-by: Colin Ian King --- drivers/scsi/megaraid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/megaraid.c b/drivers/scsi/megaraid.c index 66a30a3e6cd5..38976f94453e 100644 --- a/drivers/scsi/megaraid.c +++ b/drivers/scsi/megaraid.c @@ -219,7 +219,7 @@ mega_query_adapter(adapter_t *adapter) raw_mbox[3] = ENQ3_GET_SOLICITED_FULL; /* i.e. 0x02 */ /* Issue a blocking command to the card */ - if ((retval = issue_scb_block(adapter, raw_mbox))) { + if (issue_scb_block(adapter, raw_mbox)) { /* the adapter does not support 40ld */ mraid_ext_inquiry *ext_inq; -- 2.39.2