Commit 8463d9fa authored by Christian Gromm's avatar Christian Gromm Committed by Greg Kroah-Hartman

staging: most: cdev: avoid warning about potentially uninitialized variable

This patch avoids the warning that the pointer mbo might be used
uninitialized that some environmens throw.
Signed-off-by: default avatarChristian Gromm <christian.gromm@microchip.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 69c90cf1
...@@ -242,7 +242,7 @@ static ssize_t ...@@ -242,7 +242,7 @@ static ssize_t
comp_read(struct file *filp, char __user *buf, size_t count, loff_t *offset) comp_read(struct file *filp, char __user *buf, size_t count, loff_t *offset)
{ {
size_t to_copy, not_copied, copied; size_t to_copy, not_copied, copied;
struct mbo *mbo; struct mbo *mbo = NULL;
struct comp_channel *c = filp->private_data; struct comp_channel *c = filp->private_data;
mutex_lock(&c->io_mutex); mutex_lock(&c->io_mutex);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment