Re: [PATCH] rtc: stm32: fix comparison warnings

2017-01-17 Thread Alexandre Belloni
On 16/01/2017 at 11:08:53 +0100, Amelie Delaunay wrote : > This patches fixes comparison between signed and unsigned values as it > could produce an incorrect result when the signed value is converted to > unsigned: > > drivers/rtc/rtc-stm32.c: In function 'stm32_rtc_valid_alrm': >

Re: [PATCH] rtc: stm32: fix comparison warnings

2017-01-17 Thread Alexandre Belloni
On 16/01/2017 at 11:08:53 +0100, Amelie Delaunay wrote : > This patches fixes comparison between signed and unsigned values as it > could produce an incorrect result when the signed value is converted to > unsigned: > > drivers/rtc/rtc-stm32.c: In function 'stm32_rtc_valid_alrm': >

[PATCH] rtc: stm32: fix comparison warnings

2017-01-16 Thread Amelie Delaunay
This patches fixes comparison between signed and unsigned values as it could produce an incorrect result when the signed value is converted to unsigned: drivers/rtc/rtc-stm32.c: In function 'stm32_rtc_valid_alrm': drivers/rtc/rtc-stm32.c:404:21: warning: comparison between signed and unsigned

[PATCH] rtc: stm32: fix comparison warnings

2017-01-16 Thread Amelie Delaunay
This patches fixes comparison between signed and unsigned values as it could produce an incorrect result when the signed value is converted to unsigned: drivers/rtc/rtc-stm32.c: In function 'stm32_rtc_valid_alrm': drivers/rtc/rtc-stm32.c:404:21: warning: comparison between signed and unsigned