diff options
author | Sakari Ailus <sakari.ailus@maxwell.research.nokia.com> | 2012-04-26 11:05:50 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-05-20 11:46:27 -0400 |
commit | 0458294751f8f9a883d518e55a13ea002df1d829 (patch) | |
tree | a3fe965d21fb721a74d19457ea9d4b903399e3df /drivers/media/video | |
parent | 6f367993988720c86e863bb64db8a62a002d6d9d (diff) |
[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>
Diffstat (limited to 'drivers/media/video')
-rw-r--r-- | drivers/media/video/smiapp/smiapp-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
873 | unsigned char *nvm) | 873 | unsigned char *nvm) |
874 | { | 874 | { |
875 | u32 i, s, p, np, v; | 875 | u32 i, s, p, np, v; |
876 | int rval, rval2; | 876 | int rval = 0, rval2; |
877 | 877 | ||
878 | np = sensor->nvm_size / SMIAPP_NVM_PAGE_SIZE; | 878 | np = sensor->nvm_size / SMIAPP_NVM_PAGE_SIZE; |
879 | for (p = 0; p < np; p++) { | 879 | for (p = 0; p < np; p++) { |