This patch avoids returning an uninitialized value in the default path of the switch expression. Signed-off-by: Christian Gromm <christian.gromm@xxxxxxxxxxxxx> Reported-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> --- drivers/staging/most/usb/usb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/most/usb/usb.c b/drivers/staging/most/usb/usb.c index df5876c..2640c5b 100644 --- a/drivers/staging/most/usb/usb.c +++ b/drivers/staging/most/usb/usb.c @@ -215,6 +215,7 @@ static unsigned int get_stream_frame_size(struct device *dev, break; default: dev_warn(dev, "Query frame size of non-streaming channel\n"); + frame_size = 0; break; } return frame_size; -- 2.7.4