Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2483274pxj; Mon, 10 May 2021 04:11:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFCSUb3nKwEPNxk65kukvzMe4JrWKDivdUefvwqlc/rZ+LYgcd21rN2ey5LlK7XvpkliOl X-Received: by 2002:a17:906:7189:: with SMTP id h9mr25267121ejk.71.1620645072794; Mon, 10 May 2021 04:11:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620645072; cv=none; d=google.com; s=arc-20160816; b=FlfMWwtNC3/zH+9rO++psSPMqGY8QpiN5lLFdsgf2ODF3UJP/yhK7USGwsdF042vfi Bz4IZrK69GdWlv9AmlMwZxOTIAk0Xb5mGxKSL9D47LApDFXMCWJoQ3KM/MX29mkJKO5y SN5WP/t9sjGQGr5ezS0NXVsluxsXFPWTp+JauTeY6DV3gR3f464m24kct32+7fkNbwBt 73loPVnB4NSjj/MjnHUbdIKhTpEYRPYi/QkBu8jeiSKQPjZLauYGqJ4ESgGdhq87Mlg7 oz6i+Om0/jVDelarbqaAlaPtpvNOwBWj6OJQnMzLS7bU/xRag0JFhzQBUCubX2uR1BhV nb+g== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=wBI7qW4gOPABm+2PVJAmi836lpz97Fn1AjkNRTSrE70=; b=ef156gv7gq/xpVgwg7XB5fMhWVej2cZMqhfmC+FyKofMsffvi6cvx8QL2Y/Gw77EZT RRUpl/oQ3BQbpwsgUGuszgjOsPgUzCav6O0WXgUdf/3oppnY7cbd2e4grkAn0T56E8X6 cZqu7jYbA/x/5GInXs/42P0LfLqFnJTsZxtWdQN/b4v3+/gdFUVBB8zVbGxQUWavix5f 3Z0kkO919z6ocME2NDzxhk4TmUrwWPj+KZdoMkCU11s0/S0Pf2CquQ5D92WHOSpht4ay OqMLl3A/l7MsDPo7EAFtGR8eNeiTvLVlOSTO/wp8O9/Y/jdrK14jHitBQGJAlJ2jF4Yx yaQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=yCpcuXA3; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a8si4080674ejc.334.2021.05.10.04.10.48; Mon, 10 May 2021 04:11:12 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=yCpcuXA3; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236511AbhEJLIP (ORCPT + 99 others); Mon, 10 May 2021 07:08:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:59426 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231345AbhEJKru (ORCPT ); Mon, 10 May 2021 06:47:50 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 573DE619B9; Mon, 10 May 2021 10:37:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620643064; bh=QyPsTRsg3KhNkF5wHIQ+caXRJdzEsk3mmJ85ymOGAjM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yCpcuXA3I+yqNV1PrCeg47f7RBr1ID7itkms2CQeqssHQu02uHZhj2a8O6jFvO2c8 87lQt3xgoc4dQrYFF4Lj3azsgkZ6t3BKl7a+wVnVoaf0fUb+7ReCi6/1XIP2udYHrL oF70xe3SppXvUHcWp2Jj6jqy/iPO/ULGns5qaShU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mike Christie , Johannes Thumshirn , Chaitanya Kulkarni , "Martin K. Petersen" , Sasha Levin Subject: [PATCH 5.10 128/299] scsi: target: pscsi: Fix warning in pscsi_complete_cmd() Date: Mon, 10 May 2021 12:18:45 +0200 Message-Id: <20210510102009.202173402@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210510102004.821838356@linuxfoundation.org> References: <20210510102004.821838356@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chaitanya Kulkarni [ Upstream commit fd48c056a32ed6e7754c7c475490f3bed54ed378 ] This fixes a compilation warning in pscsi_complete_cmd(): drivers/target/target_core_pscsi.c: In function ‘pscsi_complete_cmd’: drivers/target/target_core_pscsi.c:624:5: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body] ; /* XXX: TCM_LOGICAL_UNIT_COMMUNICATION_FAILURE */ Link: https://lore.kernel.org/r/20210228055645.22253-5-chaitanya.kulkarni@wdc.com Reviewed-by: Mike Christie Reviewed-by: Johannes Thumshirn Signed-off-by: Chaitanya Kulkarni Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/target/target_core_pscsi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/target/target_core_pscsi.c b/drivers/target/target_core_pscsi.c index 723a51a3f431..f10f0aa6cd37 100644 --- a/drivers/target/target_core_pscsi.c +++ b/drivers/target/target_core_pscsi.c @@ -620,8 +620,9 @@ static void pscsi_complete_cmd(struct se_cmd *cmd, u8 scsi_status, unsigned char *buf; buf = transport_kmap_data_sg(cmd); - if (!buf) + if (!buf) { ; /* XXX: TCM_LOGICAL_UNIT_COMMUNICATION_FAILURE */ + } if (cdb[0] == MODE_SENSE_10) { if (!(buf[3] & 0x80)) -- 2.30.2