Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2236651rwl; Thu, 30 Mar 2023 07:46:45 -0700 (PDT) X-Google-Smtp-Source: AKy350atVRWF93NKTqFarzY0c+iMtFDmTLxtmzgciKDlk2beDdbxYPuB2oPOAPAwkzvm3q3+L2r7 X-Received: by 2002:a05:6402:268e:b0:502:1f7b:f0a6 with SMTP id w14-20020a056402268e00b005021f7bf0a6mr24804428edd.0.1680187605403; Thu, 30 Mar 2023 07:46:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680187605; cv=none; d=google.com; s=arc-20160816; b=Gx1lZ7khtyN5BOOYkBGjmNefU+AmducPJDle2+GpsabiTD/d0F7uE2L1vdTE4GEROu CS1KcKu65SBZtbHtXGOBxXBI2xHTXCrMwb6A/6aT9zpw1WxGnnVLh2Ns35/giR7SCmeS kuEhx9YRIlUDoMfdhz8mlehksw5WQvCM+1v4U57CybBLUbkwdG0GLzV7l3b9l4HhqEGG RqS7gaQLYa72OgQalcVcf2hJXqbwDBWlpoGMSRmCprlG2bbj5uwrib/ovHQYYy0edfme 7LPj3LOh05xK6lPgCXnRmw8can9daX1KVYreF1t602I5S4tFEWE/lzH8nvHMmvd9EYzO grSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding:sender :in-reply-to:content-disposition:references:message-id:subject:cc:to :from:date:dkim-signature; bh=vAJbS5/a+lyQTEOIx+8F7yJCVx2VLOAAsawZaDWelcA=; b=xSPQmfLfOqyTHNUX5ZqKPBU44DW5q8cw9AQpIV9SjbM+wPWazsqx5dpmIi9JxfsVe2 /SM85RnDDETjGYlwVQaJY/6ktkj/9vNETLTbvgGo3+g78bMU2Ou6yfotHZ0y2P4Fz9LN a76FNB5J0j/Y1MaZPZOhaOXzn1yFprECY3CU9IIEnHPlhS4SebkCogclDLAx2i9rB5EJ KT7C6KcuXkuhhzLnf4MBtPecl0D90EoLSIzU1NG9z6Am8ZD/GJ0mhCCH6cQrJ9ehs0ei AxSqe5Zoxqnv080fqaSKm7a9GEjBbWlsl6DItFuz8eu2/KqSw78zZENMRFuKU9Ox9bJS SzTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=iuZUfdh8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 10-20020a170906208a00b009395b8121cesi23483365ejq.178.2023.03.30.07.46.19; Thu, 30 Mar 2023 07:46:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=iuZUfdh8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232090AbjC3O33 (ORCPT + 99 others); Thu, 30 Mar 2023 10:29:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230015AbjC3O32 (ORCPT ); Thu, 30 Mar 2023 10:29:28 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BE59114; Thu, 30 Mar 2023 07:29:27 -0700 (PDT) Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 32UDwCuZ001613; Thu, 30 Mar 2023 14:29:20 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : to : cc : subject : message-id : references : content-type : in-reply-to : sender : content-transfer-encoding : mime-version; s=pp1; bh=vAJbS5/a+lyQTEOIx+8F7yJCVx2VLOAAsawZaDWelcA=; b=iuZUfdh8iJH8/ZVPApZuE2/F24zo9grVV8u9loj9A10vvWDZE3yi44lRzV7ONJ41XKkq nuCm3Mzu/QlU1sBB4wA7hg1unFk3RkMzJzTSH5coGg4fQosP8SJNgihJNZxsGVQDruFw vbow7e5g/yceDz++xe9dcbyIUJa5jwWV2RorrX93q9wNlQL9YpXY+BmzdI0zU97uIkO4 9cUrUQjYetxdYk4FFdxbRcMBG6SKVonzn4UHY8zpOEiTh6zDWboBe4jlaRu6SSqiTw/e rP8oetJuWfpcRd2klB1C4jgfMLINGcU+JNpg3b2nDWW1m9Jzpn1CucL/glD8ZaK+noB5 Ew== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3pmp7k31mw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 30 Mar 2023 14:29:20 +0000 Received: from m0098399.ppops.net (m0098399.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 32UDNfcw004799; Thu, 30 Mar 2023 14:29:19 GMT Received: from ppma04fra.de.ibm.com (6a.4a.5195.ip4.static.sl-reverse.com [149.81.74.106]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3pmp7k31gf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 30 Mar 2023 14:29:19 +0000 Received: from pps.filterd (ppma04fra.de.ibm.com [127.0.0.1]) by ppma04fra.de.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 32UBLh2V030969; Thu, 30 Mar 2023 14:29:10 GMT Received: from smtprelay06.fra02v.mail.ibm.com ([9.218.2.230]) by ppma04fra.de.ibm.com (PPS) with ESMTPS id 3phrk6cw9e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 30 Mar 2023 14:29:09 +0000 Received: from smtpav05.fra02v.mail.ibm.com (smtpav05.fra02v.mail.ibm.com [10.20.54.104]) by smtprelay06.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 32UET6Xv19595644 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 30 Mar 2023 14:29:06 GMT Received: from smtpav05.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 500C920049; Thu, 30 Mar 2023 14:29:06 +0000 (GMT) Received: from smtpav05.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3D90820043; Thu, 30 Mar 2023 14:29:06 +0000 (GMT) Received: from t480-pf1aa2c2 (unknown [9.152.212.191]) by smtpav05.fra02v.mail.ibm.com (Postfix) with ESMTPS; Thu, 30 Mar 2023 14:29:06 +0000 (GMT) Received: from bblock by t480-pf1aa2c2 with local (Exim 4.96) (envelope-from ) id 1phtGz-002tcJ-2m; Thu, 30 Mar 2023 16:29:05 +0200 Date: Thu, 30 Mar 2023 14:29:05 +0000 From: Benjamin Block To: Tom Rix Cc: jejb@linux.ibm.com, martin.petersen@oracle.com, nathan@kernel.org, ndesaulniers@google.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [PATCH] scsi: scsi_transport_fc: remove unused desc_cnt variable Message-ID: <20230330142905.GC10558@t480-pf1aa2c2.fritz.box> References: <20230326003222.1343671-1-trix@redhat.com> Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20230326003222.1343671-1-trix@redhat.com> Sender: Benjamin Block X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: 8f0qs-GbdrqlkCN6nQLAHbW_01uxQQtu X-Proofpoint-GUID: q2DXUZWSd_Er_yRTQIqg94g-xhUzTY19 Content-Transfer-Encoding: 8bit X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-30_09,2023-03-30_03,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 spamscore=0 priorityscore=1501 phishscore=0 lowpriorityscore=0 adultscore=0 suspectscore=0 impostorscore=0 mlxlogscore=999 bulkscore=0 malwarescore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2303300106 X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Mar 25, 2023 at 08:32:22PM -0400, Tom Rix wrote: > clang with W=1 reports > drivers/scsi/scsi_transport_fc.c:908:6: error: variable > 'desc_cnt' set but not used [-Werror,-Wunused-but-set-variable] > u32 desc_cnt = 0, bytes_remain; > ^ > This variable is not used so remove it. > > Signed-off-by: Tom Rix > --- > drivers/scsi/scsi_transport_fc.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > Looks good to me. Reviewed-by: Benjamin Block -- Best Regards, Benjamin Block / Linux on IBM Z Kernel Development IBM Deutschland Research & Development GmbH / https://www.ibm.com/privacy Vors. Aufs.-R.: Gregor Pillen / Gesch?ftsf?hrung: David Faller Sitz der Ges.: B?blingen / Registergericht: AmtsG Stuttgart, HRB 243294