summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/spi
diff options
context:
space:
mode:
authorLi Zetao <lizetao1@huawei.com>2023-08-03 16:48:05 +0300
committerMark Brown <broonie@kernel.org>2023-08-03 19:07:09 +0300
commitde5e92cb5cefd2968b96075995a36e28298edf71 (patch)
treeeea9450c7cbbb0411df1bccd7b00290ab2648bd4 /Documentation/devicetree/bindings/spi
parentd8736266ae960504110e812994f555bf7cb8740c (diff)
downloadlinux-de5e92cb5cefd2968b96075995a36e28298edf71.tar.xz
spi: mpc5xxx-psc: Fix unsigned expression compared with zero
There is two warnings reported by coccinelle: ./drivers/spi/spi-mpc512x-psc.c:493:5-13: WARNING: Unsigned expression compared with zero: mps -> irq < 0 ./drivers/spi/spi-mpc52xx-psc.c:332:5-13: WARNING: Unsigned expression compared with zero: mps -> irq < 0 The commit "208ee586f862" ("spi: mpc5xxx-psc: Return immediately if IRQ resource is unavailable") was to check whether the IRQ resource is unavailable. When the IRQ resource is unavailable, an error code is returned, however, the type of "mps->irq" is "unsigned int", causing the error code to flip. Modify the type of "mps->irq" to solve this problem. Fixes: 208ee586f862 ("spi: mpc5xxx-psc: Return immediately if IRQ resource is unavailable") Signed-off-by: Li Zetao <lizetao1@huawei.com> Link: https://lore.kernel.org/r/20230803134805.1037251-1-lizetao1@huawei.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/spi')
0 files changed, 0 insertions, 0 deletions