From: Sakari Ailus Date: Thu, 26 Apr 2012 15:05:50 +0000 (-0300) Subject: [media] smiapp: Initialise rval in smiapp_read_nvm() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=0458294751f8f9a883d518e55a13ea002df1d829;p=openwrt%2Fstaging%2Fblogic.git [media] smiapp: Initialise rval in smiapp_read_nvm() rval was not properly initialised in smiapp_read_nvm(). Do that. Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/smiapp/smiapp-core.c b/drivers/media/video/smiapp/smiapp-core.c index 3bf086f836fb..6524091a9a4c 100644 --- a/drivers/media/video/smiapp/smiapp-core.c +++ b/drivers/media/video/smiapp/smiapp-core.c @@ -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++) {