From: Henrique de Moraes Holschuh Date: Sat, 2 Aug 2008 18:11:00 +0000 (-0300) Subject: rfkill: introduce RFKILL_STATE_MAX X-Git-Tag: v2.6.28-rc1~717^2~433 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96c87607ac8f9b0e641d11ba6e57f8ec0214ea1c;p=pandora-kernel.git 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 Acked-by: Ivo van Doorn Signed-off-by: John W. Linville --- Reading git-diff-tree failed