staging: most: usb: init return value in default path of switch/case expression

This patch avoids returning an uninitialized value in the default
path of the switch expression.

Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/1590669703-20004-1-git-send-email-christian.gromm@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Christian Gromm 2020-05-28 14:41:43 +02:00 committed by Greg Kroah-Hartman
parent 36cf583eaf
commit 11974ace2d

View File

@ -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;