aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Gromm <[email protected]>2020-05-28 14:41:43 +0200
committerGreg Kroah-Hartman <[email protected]>2020-05-29 12:35:59 +0200
commit11974ace2d8681ae3efe027b4020869ccee48878 (patch)
tree28c78c6f775c2dd1d11f542e69037ea533baebf2
parent36cf583eaff3458abbfac144c5e4d417a23fa1a1 (diff)
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]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r--drivers/staging/most/usb/usb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/most/usb/usb.c b/drivers/staging/most/usb/usb.c
index df5876c8ac45..2640c5b326a4 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;