[rtc-linux] linux-4.7-rc2/drivers/rtc/rtc-ds1685.c: 2 * bad if test ?
From: David Binderman <hidden>
Date: 2016-06-07 15:18:35
Also in:
lkml
Hello there, 1. linux-4.7-rc2/drivers/rtc/rtc-ds1685.c:392]: (style) Redundant condition: If '!(mday >= 1)', the comparison 'mday <= 31' is always true. Source code is if (!(mday >= 1) && (mday <= 31)) Maybe better code if (!((mday >= 1) && (mday <= 31))) 2. linux-4.7-rc2/drivers/rtc/rtc-ds1685.c:464]: (style) Redundant condition: If '!(mday >= 1)', the comparison 'mday <= 31' is always true. Duplicate. Also in the same file: [drivers/rtc/rtc-ds1685.c:265]: (style) Variable 'ctrlb' is assigned a value that is never used. [drivers/rtc/rtc-ds1685.c:812]: (style) Variable 'ctrlc' is assigned a value that is never used. Regards David Binderman -- You received this message because you are subscribed to "rtc-linux". Membership options at http://groups.google.com/group/rtc-linux . Please read http://groups.google.com/group/rtc-linux/web/checklist before submitting a driver. --- You received this message because you are subscribed to the Google Groups "rtc-linux" group. To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/d/optout.