]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf43a2078c6e1687e8c4abb9d3e64e1b34ef0370a
tree9debb668feb6549079dd3965029180d8e4e9f56d
parent9811d00552024957d4451fd964781a9380378af4
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