linux/arch/powerpc/sysdev
Gautam Menghani 984b07b428 powerpc/xics: Remove unnecessary endian conversion
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);

'server' was used as a parameter to opal_get_xive() in commit
5c7c1e9444 ("powerpc/powernv: Add OPAL ICS backend") when it was
introduced. 'server' was also used in an error message for the call to
opal_get_xive().

'server' was always later set by a call to ics_opal_mangle_server()
before being used.

Commit bf8e0f891a ("powerpc/powernv: Fix endian issues in OPAL ICS
backend") used a new variable 'oserver' as the parameter to
opal_get_xive() instead of 'server' for endian correctness. It also
removed 'server' from the error message for the call to opal_get_xive().

Fix the warning by removing the server variable assignment.

Fixes: bf8e0f891a ("powerpc/powernv: Fix endian issues in OPAL ICS backend")
Reviewed-by: Jordan Niethe <jniethe5@gmail.com>
Signed-off-by: Gautam Menghani <gautam@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230731115543.36991-1-gautam@linux.ibm.com
2023-08-16 23:54:48 +10:00
..
ge powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
xics powerpc/xics: Remove unnecessary endian conversion 2023-08-16 23:54:48 +10:00
xive powerpc: Use of_property_read_bool() for boolean properties 2023-03-30 23:36:35 +11:00
6xx-suspend.S treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
cpm_common.c powerpc: Explicitly include correct DT includes 2023-08-02 22:22:19 +10:00
cpm_gpio.c powerpc: Explicitly include correct DT includes 2023-08-02 22:22:19 +10:00
cpm2_pic.c powerpc/cpm2: Remove cpm2_map() and cpm2_unmap() 2023-08-16 23:54:47 +10:00
cpm2_pic.h
cpm2.c powerpc/cpm2: Remove cpm2_map() and cpm2_unmap() 2023-08-16 23:54:47 +10:00
dart_iommu.c powerpc/iommu: Add missing of_node_put in iommu_init_early_dart 2022-05-22 15:58:31 +10:00
dart.h
dcr-low.S powerpc: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-16 23:54:48 +10:00
dcr.c powerpc: Use of_property_read_bool() for boolean properties 2023-03-30 23:36:35 +11:00
ehv_pic.c powerpc: Use of_property_read_bool() for boolean properties 2023-03-30 23:36:35 +11:00
fsl_gtm.c powerpc/sysdev: fix incorrect use to determine if list is empty 2022-03-08 00:04:56 +11:00
fsl_lbc.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
fsl_mpic_err.c powerpc/sysdev: Add __init attribute to eligible functions 2021-12-23 22:33:12 +11:00
fsl_mpic_timer_wakeup.c powerpc/fsl: fix compiler warning in fsl_wakeup_sys_init() 2023-03-28 08:23:54 +02:00
fsl_msi.c powerpc/msi: Fix deassociation of MSI descriptors 2022-12-17 10:58:48 +00:00
fsl_msi.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 441 2019-06-05 17:37:17 +02:00
fsl_pci.c iommu/fsl: Use driver_managed_dma to allow VFIO to work 2023-06-01 11:47:48 +02:00
fsl_pci.h powerpc/fsl-pci: Fix Class Code of PCIe Root Port 2022-07-27 21:36:03 +10:00
fsl_pmc.c powerpc: Explicitly include correct DT includes 2023-08-02 22:22:19 +10:00
fsl_rcpm.c
fsl_rio.c powerpc: Explicitly include correct DT includes 2023-08-02 22:22:19 +10:00
fsl_rio.h
fsl_rmu.c powerpc: Explicitly include correct DT includes 2023-08-02 22:22:19 +10:00
fsl_soc.c powerpc: Explicitly include correct DT includes 2023-08-02 22:22:19 +10:00
fsl_soc.h
grackle.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
i8259.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
indirect_pci.c powerpc: Remove asm/prom.h from all files that don't need it 2022-05-08 22:15:04 +10:00
ipic.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
ipic.h
Kconfig powerpc/4xx: Remove MSI support which never worked 2021-12-09 11:52:20 +01:00
Makefile powerpc/85xx: Remove FSL_85XX_CACHE_SRAM 2022-05-22 15:58:30 +10:00
mmio_nvram.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
mpc5xxx_clocks.c powerpc/mpc5xxx: Switch mpc5xxx_get_bus_frequency() to use fwnode 2022-06-22 12:51:49 +10:00
mpic_msgr.c powerpc: Explicitly include correct DT includes 2023-08-02 22:22:19 +10:00
mpic_msi.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
mpic_timer.c powerpc: Explicitly include correct DT includes 2023-08-02 22:22:19 +10:00
mpic_u3msi.c powerpc/msi: Fix deassociation of MSI descriptors 2022-12-17 10:58:48 +00:00
mpic.c powerpc: Use of_property_read_bool() for boolean properties 2023-03-30 23:36:35 +11:00
mpic.h powerpc/pasemi: Add __init attribute to eligible functions 2021-12-23 22:33:14 +11:00
msi_bitmap.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
of_rtc.c powerpc: Explicitly include correct DT includes 2023-08-02 22:22:19 +10:00
pmi.c powerpc: Explicitly include correct DT includes 2023-08-02 22:22:19 +10:00
rtc_cmos_setup.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
tsi108_dev.c powerpc: Use of_address_to_resource() 2023-04-04 22:11:03 +10:00
tsi108_pci.c powerpc/sysdev/tsi108: fix resource printk format warnings 2023-03-30 23:36:34 +11:00
udbg_memcons.c powerpc/sysdev: Add __init attribute to eligible functions 2021-12-23 22:33:12 +11:00