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:06:03 +0000 (08:06 -0700)
commitf4a407b32de430e751a24e8d579af36ac74d99b3
treeb036cd1d908a824f2bc3fd96a523fe89920b22f9
parent89d30c2107c85ce3ae1a267f1065aa0fb1e5b310
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