From: Srinivas Goud Date: Tue, 8 Oct 2019 14:25:41 +0000 (+0200) Subject: rtc: xilinx: Fix calibval variable type X-Git-Tag: v5.15~4974^2~62 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d53bf24db3776842876f83a29a7cd8db2aa3c5ab;p=platform%2Fkernel%2Flinux-starfive.git rtc: xilinx: Fix calibval variable type This patch fixes the warnings reported by static code analysis. Updated calibval variable type to unsigned type from signed. Signed-off-by: Srinivas Goud Signed-off-by: Michal Simek Link: https://lore.kernel.org/r/20765c4c27aa92c75426b82fd2815ebef6471492.1570544738.git.michal.simek@xilinx.com Signed-off-by: Alexandre Belloni --- diff --git a/drivers/rtc/rtc-zynqmp.c b/drivers/rtc/rtc-zynqmp.c index 55646e0..5396905 100644 --- a/drivers/rtc/rtc-zynqmp.c +++ b/drivers/rtc/rtc-zynqmp.c @@ -44,7 +44,7 @@ struct xlnx_rtc_dev { void __iomem *reg_base; int alarm_irq; int sec_irq; - int calibval; + unsigned int calibval; }; static int xlnx_rtc_set_time(struct device *dev, struct rtc_time *tm)