Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Christian Gromm and committed by
Greg Kroah-Hartman
11974ace 36cf583e

+1
+1
drivers/staging/most/usb/usb.c
··· 215 215 break; 216 216 default: 217 217 dev_warn(dev, "Query frame size of non-streaming channel\n"); 218 + frame_size = 0; 218 219 break; 219 220 } 220 221 return frame_size;