Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2073862rdd; Thu, 11 Jan 2024 20:20:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IGh99fWtVTSJKhRSDu2+a2+lW7PDQ1/pH0HCxqj2DNE/8WwtCUys9gd8v6GJ0oCkOeQeY5B X-Received: by 2002:a2e:9545:0:b0:2cc:5c19:d009 with SMTP id t5-20020a2e9545000000b002cc5c19d009mr380654ljh.45.1705033212277; Thu, 11 Jan 2024 20:20:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705033212; cv=none; d=google.com; s=arc-20160816; b=NbrfRDUMhBVav2Bs4OJ7qj2oqVRCjSyp3uUyCMyYbFzFAFnd77KrZtSkutAn5K95Ob oBaxS67VwIbQd6N67MnWCedMprHyhidR3KGXUvoBUj1MTHUga1JYcbd+T5d+e2XFLK5D aqKLRVc98CRmqeH2Mp91ykMKm9/Yd09gGE5om0XX2KUMsh5R5KiIZOdTlyDUzBpA8RmN 5lNOA9eto3PX0OQgiAdozFmCHZQcNSdUYlxG+LZjnorCtGBDh75Zji3sH2Nk6kCi9sln vcWnzIjidR9k2Sb/nBhdfALI5xMULharTk5p0YXcEMcKxbj5VJAVWnRizrFVXrbDNn6h M1Ew== ARC-Message-Signature: i=1; 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; bh=6shhXKa2yJEiAQsJ0Jt4iLIOaW0xqaLrYRMG5mL4PAU=; fh=m2TwruvFnFCoSQ2DwkJsz2pEyboh9gElC3EoOF3vPzY=; b=wfoPqbbSvh5r/hjLbu0dCsNQrD5AMysQGekTtz4kALYlIeTYq9xgyFrD0dsUxhMlYL JsOiPZsTXdWPlcglkE+PaqcK2umh0jWFMgk5OVV25WvDDB58vjr8P8QdPjqRzhss0Gwb 1yY+HKCwI6sps4+rN7HrYKsqT0Zxp1YBBlO0RWGrM1jwaxUnDrQ6UiM1vHT9F4HMw/lG 6h2x6BsjI185wRZR1RyxLer9j5qVOYFPPXUeq8fLTLBlSdnb77CqbT6PZyTKCcXOTMQ/ 9JJ5i09Zf0fqx/ePqN01uWLaWEjaZaimGikwrf6UQ4D+uT6vgk7nAbkYx2VnSNo2wz4h pIvA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-24283-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24283-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id y21-20020a50e615000000b00558a692e23csi845744edm.62.2024.01.11.20.20.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 20:20:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24283-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-24283-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24283-linux.lists.archive=gmail.com@vger.kernel.org" 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 0010B1F25BFC for ; Fri, 12 Jan 2024 04:20:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D9E111D545; Fri, 12 Jan 2024 04:20:00 +0000 (UTC) Received: from mail.nfschina.com (unknown [42.101.60.195]) by smtp.subspace.kernel.org (Postfix) with SMTP id 8FBAA1A73F; Fri, 12 Jan 2024 04:19:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nfschina.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nfschina.com Received: from localhost.localdomain (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPSA id 93801604F046F; Fri, 12 Jan 2024 12:19:37 +0800 (CST) X-MD-Sfrom: suhui@nfschina.com X-MD-SrcIP: 180.167.10.98 From: Su Hui To: artur.paszkiewicz@intel.com, jejb@linux.ibm.com, martin.petersen@oracle.com, nathan@kernel.org, ndesaulniers@google.com, morbo@google.com, justinstitt@google.com Cc: Su Hui , dan.j.williams@intel.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, kernel-janitors@vger.kernel.org Subject: [PATCH] scsi: isci: request: Fix an error code problem in isci_io_request_build Date: Fri, 12 Jan 2024 12:19:27 +0800 Message-Id: <20240112041926.3924315-1-suhui@nfschina.com> X-Mailer: git-send-email 2.30.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Clang static complains that Value stored to 'status' is never read. Return 'status' rather than 'SCI_SUCCESS'. Fixes: f1f52e75939b ("isci: uplevel request infrastructure") Signed-off-by: Su Hui --- drivers/scsi/isci/request.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/isci/request.c b/drivers/scsi/isci/request.c index 71f711cb0628..355a0bc0828e 100644 --- a/drivers/scsi/isci/request.c +++ b/drivers/scsi/isci/request.c @@ -3387,7 +3387,7 @@ static enum sci_status isci_io_request_build(struct isci_host *ihost, return SCI_FAILURE; } - return SCI_SUCCESS; + return status; } static struct isci_request *isci_request_from_tag(struct isci_host *ihost, u16 tag) -- 2.30.2