Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fe00bcbf authored by Michal Nazarewicz's avatar Michal Nazarewicz Committed by Felipe Balbi
Browse files

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: default avatarFelipe Balbi <balbi@ti.com>
Signed-off-by: default avatarMichal Nazarewicz <mina86@mina86.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent c559a353
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2337,7 +2337,8 @@ static void __ffs_event_add(struct ffs_data *ffs,
		break;

	default:
		BUG();
		WARN(1, "%d: unknown event, this should not happen\n", type);
		return;
	}

	{