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:
parent
36cf583eaf
commit
11974ace2d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue