mtd: devices: elm: fix elm_context_save() and elm_context_restore() functions
authorTed Juan <ted.juan@gmail.com>
Fri, 20 Jun 2014 09:32:05 +0000 (17:32 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Jul 2014 15:08:28 +0000 (08:08 -0700)
commit9734f8dba747747ee72e13a7fccd8ca85384100d
tree7c3635baf00d798e032634a1894b8a694da7aae6
parent4476263109359f4d8f020ffa94c1da0b810fddbe
mtd: devices: elm: fix elm_context_save() and elm_context_restore() functions

commit 6938ad40cb97a52d88a763008935340729a4acc7 upstream.

These two function's switch case lack the 'break' that make them always
return error.

Signed-off-by: Ted Juan <ted.juan@gmail.com>
Acked-by: Pekon Gupta <pekon@ti.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mtd/devices/elm.c