summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>2008-08-02 20:11:00 +0200
committerJohn W. Linville <linville@tuxdriver.com>2008-08-22 22:29:57 +0200
commit96c87607ac8f9b0e641d11ba6e57f8ec0214ea1c (patch)
treed8a7d538b2bd05b5ee2957828563b31cf7db8540 /block
parentrfkill: add __must_check annotations (diff)
downloadlinux-96c87607ac8f9b0e641d11ba6e57f8ec0214ea1c.tar.xz
linux-96c87607ac8f9b0e641d11ba6e57f8ec0214ea1c.zip
rfkill: introduce RFKILL_STATE_MAX
While it is interesting to not add last-enum-markers because it allows gcc to warn us of switch() statements missing a valid state, we really should be handling memory corruption on a rfkill state with default clauses, anyway. So add RFKILL_STATE_MAX and use it where applicable. It makes for safer code in the long run. Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br> Acked-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions