usb: f_fs: replace BUG in dead-code with less serious WARN_ON
authorMichal Nazarewicz <mina86@mina86.com>
Thu, 11 Sep 2014 16:52:49 +0000 (18:52 +0200)
committerFelipe Balbi <balbi@ti.com>
Thu, 11 Sep 2014 17:15:54 +0000 (12:15 -0500)
commitfe00bcbf8a124980a38ce395ed6422d41be17374
tree9debb668feb6549079dd3965029180d8e4e9f56d
parentc559a353410939c0884e83bdb0e2420a986ac53b
usb: f_fs: replace BUG in dead-code with less serious WARN_ON

Even though the BUG() in __ffs_event_add is a dead-code, it is still
better to warn rather then crash the system if that code ever gets
executed.

Reported-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/function/f_fs.c