aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/spartan2.c
diff options
context:
space:
mode:
authorVenkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>2022-10-04 11:22:54 +0530
committerMichal Simek <michal.simek@amd.com>2022-10-10 12:28:08 +0200
commitf60be62d771c9a9d0b57576c0ef5fb832d8d40ba (patch)
tree4a81ec08ac33c9f86b009a847059099958eeeeb3 /drivers/fpga/spartan2.c
parent024cfd0ab5aacc809d24991902705f58c73da06e (diff)
xilinx: zynqmp: change the type of multiboot variable
In function ‘set_dfu_alt_info’ a comparison of a u8 value against 0 is done. Since it is always false, change the signature of this function to use an `int` instead, which match the type used in caller: `multi_boot()`. Fix the following warning triggered with W=1: board/xilinx/zynqmp/zynqmp.c:651:23: warning: comparison is always false due to limited range of data type [-Wtype-limits] 651 | if (multiboot < 0) Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com> Link: https://lore.kernel.org/r/20221004055254.26246-1-venkatesh.abbarapu@amd.com Signed-off-by: Michal Simek <michal.simek@amd.com>
Diffstat (limited to 'drivers/fpga/spartan2.c')
0 files changed, 0 insertions, 0 deletions