staging: most: usb: init return value in default path of switch/case expression
Subsystems (3)
Christian Gromm
maintainerPATCH 1/1 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 <[email protected]>
Reported-by Dan Carpenter <[email protected]>
--- drivers/staging/most/usb/usb.c | 1 + 1 file changed, 1 insertion(+)
drivers/staging/most/usb/usb.c +1 -0
@@ -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;
Signature · 1 line
2.7.4