diff options
author | Christian Gromm <christian.gromm@microchip.com> | 2018-05-08 11:45:05 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-05-08 13:41:50 +0200 |
commit | 8463d9fab6e25a77b640caada74af29f936a8ea4 (patch) | |
tree | 54665c3ede88f4a5ec5d362e61548760acaa7647 | |
parent | 69c90cf1b2faf5fa08fe5e18e4b47b044474506e (diff) | |
download | linux-8463d9fab6e25a77b640caada74af29f936a8ea4.tar.bz2 |
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: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/most/cdev/cdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/most/cdev/cdev.c b/drivers/staging/most/cdev/cdev.c index 4d7fce8731fe..89d7fc7eb4b3 100644 --- a/drivers/staging/most/cdev/cdev.c +++ b/drivers/staging/most/cdev/cdev.c @@ -242,7 +242,7 @@ static ssize_t comp_read(struct file *filp, char __user *buf, size_t count, loff_t *offset) { size_t to_copy, not_copied, copied; - struct mbo *mbo; + struct mbo *mbo = NULL; struct comp_channel *c = filp->private_data; mutex_lock(&c->io_mutex); |