Commit 04582947 authored by Sakari Ailus's avatar Sakari Ailus Committed by Mauro Carvalho Chehab

[media] smiapp: Initialise rval in smiapp_read_nvm()

rval was not properly initialised in smiapp_read_nvm(). Do that.
Signed-off-by: default avatarSakari Ailus <sakari.ailus@maxwell.research.nokia.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 6f367993
...@@ -873,7 +873,7 @@ static int smiapp_read_nvm(struct smiapp_sensor *sensor, ...@@ -873,7 +873,7 @@ static int smiapp_read_nvm(struct smiapp_sensor *sensor,
unsigned char *nvm) unsigned char *nvm)
{ {
u32 i, s, p, np, v; u32 i, s, p, np, v;
int rval, rval2; int rval = 0, rval2;
np = sensor->nvm_size / SMIAPP_NVM_PAGE_SIZE; np = sensor->nvm_size / SMIAPP_NVM_PAGE_SIZE;
for (p = 0; p < np; p++) { for (p = 0; p < np; p++) {
......
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