Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp21815318rwd; Thu, 29 Jun 2023 23:29:19 -0700 (PDT) X-Google-Smtp-Source: APBJJlHGmgA4SOk2kdrgr9vh4UY/w9bvP2qSRnnX0MGbFGBDZmMjfCp/ynvNjgP6xjsUUkH0L9TX X-Received: by 2002:a17:90a:1954:b0:262:e3aa:fd73 with SMTP id 20-20020a17090a195400b00262e3aafd73mr1615510pjh.17.1688106558871; Thu, 29 Jun 2023 23:29:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688106558; cv=none; d=google.com; s=arc-20160816; b=euK5J+DvN/Jv4rMhCeXeV6JjPAb27QzvaTsr3622ncSR6d5C+2zKUa3iU9L6qpU50y LhW/3SHD4FB/fMzqec3DaM6WmR57lwBDogl0X6jKrWI0/C05xc2dULPF/2ftWaRtjV3b MP12OjTm/fak5+C7qex/7icPVYqkguX8iFbKMt22fGoFyR6DL0Xp72II7WlTo0MxZSN3 kO/KFWe8lGWL57RApxlnvTxU7O87CIhrRYfjKuPrVmiUSCdtHJ/AJYleIPtgU0fS1xXr d9fRmNdGa92C2g6eZ5gxZLeb8rd5jUgHbhE0M5BNWy6KXvcneTScHvRRpm9aN3DewhBk 5u7Q== 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=PI6kPDOKsBjhhSBQUzrtR773Q7tyRlsLL0ler/rGP9FJnWeGuxdiiGILJ4ZXLku6HC 5coFsW+NGYeRgaKKl0T5xM6L6bVuThnmqJB7KJdhz9qsYn1vxiyrwUkfvurQ4baE9vjV 5OyM/wqQjnSpHPcQOC9vNGTGrk1HLeGUSYHsXJPJPdkDu2cduVjx6Svg3MHUh7k3ywUy Q3CPv1HtfMFQWwmXqnscf+4WJq5krFtWmhZj2lMdU6mWX/A8Dhsv4ynwSGYXQFTAQsRi C7m1iIIDvJN8BnPTtAt9aIVpG1ok6cL+x7GQ2mLCy7EoT6XnsFeJumvT1pYPb1htnMwT UjBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=XNgcquj7; 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 x5-20020a17090300c500b001aaebc66877si10926843plc.147.2023.06.29.23.29.04; Thu, 29 Jun 2023 23:29:18 -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=XNgcquj7; 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 S232313AbjF3F4y (ORCPT + 99 others); Fri, 30 Jun 2023 01:56:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231499AbjF3F4v (ORCPT ); Fri, 30 Jun 2023 01:56:51 -0400 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 149861FD8 for ; Thu, 29 Jun 2023 22:56:50 -0700 (PDT) Received: from pps.filterd (m0360072.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 35U5l7Ab021335; Fri, 30 Jun 2023 05:56: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=XNgcquj721Ocs4I0SH8728bJBZvW9ibUzvp8lxRM14OTtLQmMi8pwjWNE3x1rcrjUycV R3mPULW8ouwMz9IJWU8AawZPO1S+JOYMePdMzy3cWEeugBXDtuEqDtouxsYdfH6O2SDK BS6kVIncfngFcj+DU9ODWyarbwNuBFG5XU2xb4NuTj4y0EpSfDdPabqic6oWm31zSJBc bE5E3H1ItRBU8dK+IuDbuBKTq+1kiaczVVTggdO5UzJ+TArtt1SPfl4lfoLnsrj3jJbY gwt2MMBouZpD4w8ouB3xG5vIw8QKGJvRWLIB/OMMuebQRAXj6MCXZmnWw8Y+lYuvqdhP 4A== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3rhs75r5xa-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 30 Jun 2023 05:56:39 +0000 Received: from m0360072.ppops.net (m0360072.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 35U5lunb022168; Fri, 30 Jun 2023 05:56:39 GMT Received: from ppma01fra.de.ibm.com (46.49.7a9f.ip4.static.sl-reverse.com [159.122.73.70]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3rhs75r5wv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 30 Jun 2023 05:56:39 +0000 Received: from pps.filterd (ppma01fra.de.ibm.com [127.0.0.1]) by ppma01fra.de.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 35U3sBUn023261; Fri, 30 Jun 2023 05:56:37 GMT Received: from smtprelay07.fra02v.mail.ibm.com ([9.218.2.229]) by ppma01fra.de.ibm.com (PPS) with ESMTPS id 3rdr452xeb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 30 Jun 2023 05:56:37 +0000 Received: from smtpav05.fra02v.mail.ibm.com (smtpav05.fra02v.mail.ibm.com [10.20.54.104]) by smtprelay07.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 35U5uZp049938708 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 30 Jun 2023 05:56:35 GMT Received: from smtpav05.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4FECA20043; Fri, 30 Jun 2023 05:56:35 +0000 (GMT) Received: from smtpav05.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C0BEF20040; Fri, 30 Jun 2023 05:56:33 +0000 (GMT) Received: from li-c6426e4c-27cf-11b2-a85c-95d65bc0de0e.in.ibm.com (unknown [9.204.206.66]) by smtpav05.fra02v.mail.ibm.com (Postfix) with ESMTP; Fri, 30 Jun 2023 05:56:33 +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:26:28 +0530 Message-Id: <20230630055628.17790-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: SkgRipbPxWsXhcbs8NscDtbZRA84apYa X-Proofpoint-GUID: BaDK2tKwHJMDmF4nD6LofJ4ViClp_LxS 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 mlxscore=0 malwarescore=0 adultscore=0 phishscore=0 clxscore=1011 priorityscore=1501 spamscore=0 mlxlogscore=999 impostorscore=0 bulkscore=0 suspectscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306300048 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