]> git.dujemihanovic.xyz Git - u-boot.git/commit
pinctrl: Avoid coverity warning when checking width
authorSimon Glass <sjg@chromium.org>
Fri, 14 May 2021 01:39:28 +0000 (19:39 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 15 Jul 2021 22:42:05 +0000 (18:42 -0400)
commit4d159b6f84abeaacb346cfd14a3b0c6fb86f43f9
tree4387dc3d1047b804a793860a6c450dcfb1a18b45
parent99eaf1fcaa260dceea25ed25830498abf70f0728
pinctrl: Avoid coverity warning when checking width

The width is set up in single_of_to_plat() and can only have three values,
all of which result in a non-zero divisor. Add a comment.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reported-by: Coverity (CID: 331154)
drivers/pinctrl/pinctrl-single.c