Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp404655pxj; Thu, 20 May 2021 12:02:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbcLDSJqW+paJHQeOvv83W2huhmFbVYPcBQRwM1pSI3fNUihS45nqjoEBavqZ06r8sbT0g X-Received: by 2002:a5e:c708:: with SMTP id f8mr2055127iop.198.1621537367690; Thu, 20 May 2021 12:02:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621537367; cv=none; d=google.com; s=arc-20160816; b=Tt3F2F3dSDGfoqq7NgHK9ciVwX/0zppWeEw6/llubLXrLwIw6u9EZ6Zmyu73ZGXp35 XiS/u1rAhW/Ycj+u3rd0guPha63r/TPYWJt6Ncdp9SdIsJZ+oV3gUzNOdKkJXYr1RY// /2IVUWcsrmWLHT86bX+IJ7ia8QUADg515AZBIchmg3VUM3B/JIX3rTgKbwBunj6Mo41A aVCFOzR9t2R7jOD1HbuLMmRJ3Eu8bndyDsEPN3Et+tppDDxLNsIqFp8e5uCQ81GUObJn kRDKgwgGQM7FjCsLNwaFwFMYRetmAMzozdhztfm9euEPdhk38L3muFcUXABxVtyd9HlY ExsA== 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=yPrRDlXi40KBSX5ZdeIDwPyZzAct5dCkQ/w9m6mMpac=; b=dEnWti/Ofxp2dejq0twfZT5fIdeJBbhYcYrXGYE8VWPU3XcSnTUD042YfgEzNclywV kaDfsJy6Ny/aJC0nrUU0TsXx8Q/6nunrOyAAwk//UCgDoifz4gxLCLyNYuZa1YJhiN9C byfw/Ixvr84NB/YMkBubEE8yed0ymLt+8nainm47Cr3aH5xYgHwheIXgbiJkk+vbc6IR xb/KewmLm050Z7oiuV9r4F2IHGN/ncMuxs+QgYee5FqGfl3NJxx8A5D+e6NzlcljyaZ/ 7a2vCYyJFXUuz2lIOMDx9FA1r9pZHzopjAR0mGgsX1m5QiUNCdfKHjLyjYcHFj8qjjTL vqcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=SbAKbROM; 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 p31si3411009jac.95.2021.05.20.12.02.33; Thu, 20 May 2021 12:02:47 -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=SbAKbROM; 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 S236479AbhETKaN (ORCPT + 99 others); Thu, 20 May 2021 06:30:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:48888 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236069AbhETKRr (ORCPT ); Thu, 20 May 2021 06:17:47 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 55EBA6109F; Thu, 20 May 2021 09:46:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621503998; bh=dd0vDeJHtFz2d1EP7LUdQgPLk9wSejx9cpXoGNXKWeU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SbAKbROM2JZtPj32SNXxtWUekCP0cTuMHM2xG1wZDEjMTRy53irLn1rPycfP14+Vb Wm9fdSYUsUH/GX8oxdc9Al8sd/+ij6splAB9cR6Z3UPTLM9N3d78XWQjZ1gA63LJI1 kKWGMFo/1SlXTg7MuNncoUSNxBceeeleIJGyhHTk= 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 4.14 047/323] scsi: target: pscsi: Fix warning in pscsi_complete_cmd() Date: Thu, 20 May 2021 11:18:59 +0200 Message-Id: <20210520092121.720258085@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092120.115153432@linuxfoundation.org> References: <20210520092120.115153432@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 f80b31b35a0d..a127608a4809 100644 --- a/drivers/target/target_core_pscsi.c +++ b/drivers/target/target_core_pscsi.c @@ -633,8 +633,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