summaryrefslogtreecommitdiff
path: root/drivers/rtc/rtc-ds1347.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2023-08-07 20:11:42 +0300
committerPaul Moore <paul@paul-moore.com>2023-08-10 02:07:47 +0300
commitdf9d4749250dd8ed56a91336c3c54ea7a52fd1c7 (patch)
treef8d32144d1113ebc5dec00e3a8d58070f380327e /drivers/rtc/rtc-ds1347.c
parent817199e006e514e6c39a17ed2e9fece1bd56b898 (diff)
downloadlinux-df9d4749250dd8ed56a91336c3c54ea7a52fd1c7.tar.xz
selinux: avoid implicit conversions in avtab code
Return u32 from avtab_hash() instead of int, since the hashing is done on u32 and the result is used as an index on the hash array. Use the type of the limit in for loops. Avoid signed to unsigned conversion of multiplication result in avtab_hash_eval() and perform multiplication in destination type. Use unsigned loop iterator for index operations, to avoid sign extension. Signed-off-by: Christian Göttsche <cgzones@googlemail.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'drivers/rtc/rtc-ds1347.c')
0 files changed, 0 insertions, 0 deletions