git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
161af6c
)
gpio: use sizeof() instead of hardcoded values
author
Olliver Schinagl
<oliver@schinagl.nl>
Wed, 21 Jan 2015 21:33:45 +0000
(22:33 +0100)
committer
Linus Walleij
<linus.walleij@linaro.org>
Fri, 30 Jan 2015 13:43:04 +0000
(14:43 +0100)
gpiolib uses a fixed string for the suffixes and defines it at 32 bytes.
Later in the code snprintf is used with this fixed value of 32. Using
sizeof() is safer in case the size for the suffixes is ever changed.
Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c
patch
|
blob
|
history
diff --cc
drivers/gpio/gpiolib.c
Simple merge