Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp21815195rwd; Thu, 29 Jun 2023 23:29:11 -0700 (PDT) X-Google-Smtp-Source: APBJJlEfTIUe117Nk5DMCrlLi2wJ6/voIpMOIMJv6E9WoeY1X682HPusxiMzAcLT69ttzNkDitDI X-Received: by 2002:a17:90a:b97:b0:262:deec:502d with SMTP id 23-20020a17090a0b9700b00262deec502dmr2944094pjr.7.1688106551051; Thu, 29 Jun 2023 23:29:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688106551; cv=none; d=google.com; s=arc-20160816; b=vN3YkQR1C4Me2ZHIBWpp5t372h2XdsSucfC7NdruRdeIJ8YxkFacMAExenObKtqtfs tS17IzV5V2hHSmzoMxFciCjr9FzNzeKl0rrtmQf1vCJuixbtyN/B4yUV2AETbWIln1kZ 1pzNkHf5bljOKYVmA9YME1AEeLHndiJZi6ruJn15UA3P71ith1MZszH9ElZYkarwoD8Y HHcHNdMDio7iTdObRqFay4Fq2Zy8YLtgDgVQKPtwNRGL6GPZcDSQ5cxbjUI+avm3Ph5Z mnYjSWUSzTi9EmdQnS1DJeqz3uvR0CpM5/00MYcxDlr0k3kOxPSWBWLhexwFSvy1OyiY 5D3A== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=Tf6cj+h9jeHfj+a/aY3L5KYxzE7xOSns3FleMysM8bg=; fh=TWhNNiF8ooof0n1aVZTGa7inS4fLIftd49BVfkbsdic=; b=NyX1m9Gi6ls6iOUS2H5/X0/A/6EuFyps1RgKtqV23LNdHduk4r5Hce4NryX+soz8QJ MuslGHL5UsSR8njGHFD3GjesGMW6rZSIu2VOpnYdbDcVa5J8xWB7IqNkMFj4e0S6HzBR JAfMe74riTAmGEjh20LOr1qNFNvRLSsguaREnTzzSSakCWjfl6Sx+GIV6nT/rtMNJvsk FbrQQkrjbV4bRPCrhlZXtOSF1tdFsMdV143PL6d0CpnVUXshC+gsC4Y6ie+tWHz0Cyok Pcpmla3aBZurtBOS88r9xG2d+W4/qCoBnhz0uI+DNa9w+al76x0Oa/P8mMVaIixXzmqM bsbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=ZEhDKgB2; 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 8-20020a17090a19c800b0025e90db660esi11758764pjj.100.2023.06.29.23.28.57; Thu, 29 Jun 2023 23:29:11 -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=ZEhDKgB2; 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 S232298AbjF3GNv (ORCPT + 99 others); Fri, 30 Jun 2023 02:13:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232206AbjF3GNu (ORCPT ); Fri, 30 Jun 2023 02:13:50 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 738EA2683 for ; Thu, 29 Jun 2023 23:13:49 -0700 (PDT) Received: from pps.filterd (m0353727.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 35U5xr7v025996; Fri, 30 Jun 2023 06:13:40 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=pp1; bh=Tf6cj+h9jeHfj+a/aY3L5KYxzE7xOSns3FleMysM8bg=; b=ZEhDKgB2bbeYM4WUp8ZKsZ6FO8gQaJ1WCa+w0cUZ5RTWH5rixd8kyHpt+0PcGTSpDPWW d47yZjj/ToxHyB8qWYFQn3efVetEMcx2znN0v3JXgkzuWNs79k8nSCbi8R+ymLPEyLu6 Q62LHPK9c8ATlny5fi7Hzj3/3vT6fgYpUcbJJJa3tSb/8hmKhOlZyVT/dWbPY0VrbiZ4 Vl3vMfMF60xyVJQ53aVGHZRo5+/Wn9Dsy3AJbFzTbubyTVRnYiOsx9wNgYUKmQPeME+j 3MchwRferUSI/4Kc+lvzjaHf3yBt+rFoV5X/C0PVfzi9yvS2IQbyIGcEsyDlwCdHVChq WA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3rhsd58bay-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 30 Jun 2023 06:13:40 +0000 Received: from m0353727.ppops.net (m0353727.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 35U62vKm002833; Fri, 30 Jun 2023 06:13:39 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 3rhsd58b9d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 30 Jun 2023 06:13:39 +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 35U4seK8027107; Fri, 30 Jun 2023 06:13:34 GMT Received: from smtprelay05.fra02v.mail.ibm.com ([9.218.2.225]) by ppma04fra.de.ibm.com (PPS) with ESMTPS id 3rdr452wnq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 30 Jun 2023 06:13:34 +0000 Received: from smtpav06.fra02v.mail.ibm.com (smtpav06.fra02v.mail.ibm.com [10.20.54.105]) by smtprelay05.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 35U6DUxx20447866 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 30 Jun 2023 06:13:31 GMT Received: from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E376020043; Fri, 30 Jun 2023 06:13:30 +0000 (GMT) Received: from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4715020040; Fri, 30 Jun 2023 06:13:29 +0000 (GMT) Received: from li-c6426e4c-27cf-11b2-a85c-95d65bc0de0e.in.ibm.com (unknown [9.204.206.66]) by smtpav06.fra02v.mail.ibm.com (Postfix) with ESMTP; Fri, 30 Jun 2023 06:13:29 +0000 (GMT) From: Gautam Menghani To: mpe@ellerman.id.au, npiggin@gmail.com, christophe.leroy@csgroup.eu Cc: Gautam Menghani , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH] arch/powerpc: Remove unnecessary endian conversion code in XICS Date: Fri, 30 Jun 2023 11:43:26 +0530 Message-Id: <20230630061326.19288-1-gautam@linux.ibm.com> X-Mailer: git-send-email 2.39.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: t2-0Bs-J1YoWx1cTsuh3DUMmh1sO6fE4 X-Proofpoint-GUID: RJx2A3xX3zIC-07HRQYcS02uAFMg_P7c X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-06-30_02,2023-06-27_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 mlxscore=0 mlxlogscore=999 clxscore=1015 malwarescore=0 spamscore=0 suspectscore=0 priorityscore=1501 adultscore=0 impostorscore=0 lowpriorityscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306300052 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Remove an unnecessary piece of code that does an endianness conversion but does not use the result. The following warning was reported by Clang's static analyzer: arch/powerpc/sysdev/xics/ics-opal.c:114:2: warning: Value stored to 'server' is never read [deadcode.DeadStores] server = be16_to_cpu(oserver); As the result of endianness conversion is never used, delete the line and fix the warning. Signed-off-by: Gautam Menghani --- arch/powerpc/sysdev/xics/ics-opal.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/powerpc/sysdev/xics/ics-opal.c b/arch/powerpc/sysdev/xics/ics-opal.c index 6cfbb4fac7fb..5fe73dabab79 100644 --- a/arch/powerpc/sysdev/xics/ics-opal.c +++ b/arch/powerpc/sysdev/xics/ics-opal.c @@ -111,7 +111,6 @@ static int ics_opal_set_affinity(struct irq_data *d, __func__, d->irq, hw_irq, rc); return -1; } - server = be16_to_cpu(oserver); wanted_server = xics_get_irq_server(d->irq, cpumask, 1); if (wanted_server < 0) { -- 2.39.3