mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-13 22:25:03 +00:00
[media] smiapp: Initialise rval in smiapp_read_nvm()
rval was not properly initialised in smiapp_read_nvm(). Do that. Signed-off-by: Sakari Ailus <sakari.ailus@maxwell.research.nokia.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
6f36799398
commit
0458294751
1 changed files with 1 additions and 1 deletions
|
@ -873,7 +873,7 @@ static int smiapp_read_nvm(struct smiapp_sensor *sensor,
|
|||
unsigned char *nvm)
|
||||
{
|
||||
u32 i, s, p, np, v;
|
||||
int rval, rval2;
|
||||
int rval = 0, rval2;
|
||||
|
||||
np = sensor->nvm_size / SMIAPP_NVM_PAGE_SIZE;
|
||||
for (p = 0; p < np; p++) {
|
||||
|
|
Loading…
Reference in a new issue