aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorChristian Gromm <christian.gromm@microchip.com>2020-05-28 14:41:43 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-05-29 12:35:59 +0200
commit11974ace2d8681ae3efe027b4020869ccee48878 (patch)
tree28c78c6f775c2dd1d11f542e69037ea533baebf2
parentstaging: vchiq: Get rid of VCHIQ_SERVICE_OPENEND callback reason (diff)
downloadwireguard-linux-11974ace2d8681ae3efe027b4020869ccee48878.tar.xz
wireguard-linux-11974ace2d8681ae3efe027b4020869ccee48878.zip
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>
-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;