diff options
author | Liu Ying <Ying.Liu@freescale.com> | 2013-12-04 11:48:27 +0800 |
---|---|---|
committer | Peng Fushi <fushi.peng@freescale.com> | 2014-08-28 16:53:46 +0800 |
commit | 9ccdf2c18feb910d18f4f4dfffc9ef0938e068e4 (patch) | |
tree | a9a3e1a1d66c8b1dcade2e64f8509d9291889f3f /drivers | |
parent | b5a599abb9ed1d1d6718a953986ebafcf8db868b (diff) |
ENGR00290635-2 IPUv3 stripe:Fix a build warning
This patch fixes the following build warning by
initializing some local variables:
drivers/mxc/ipu3/ipu_calc_stripes_sizes.c: In function ‘ipu_calc_stripes_sizes’:
drivers/mxc/ipu3/ipu_calc_stripes_sizes.c:393:3: warning: ‘difwr’ may be used uninitialized in this function [-Wuninitialized]
drivers/mxc/ipu3/ipu_calc_stripes_sizes.c:393:3: warning: ‘onw’ may be used uninitialized in this function [-Wuninitialized]
drivers/mxc/ipu3/ipu_calc_stripes_sizes.c:393:3: warning: ‘inw’ may be used uninitialized in this function [-Wuninitialized]
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mxc/ipu3/ipu_calc_stripes_sizes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mxc/ipu3/ipu_calc_stripes_sizes.c b/drivers/mxc/ipu3/ipu_calc_stripes_sizes.c index 3508560c716f..c3466715029d 100644 --- a/drivers/mxc/ipu3/ipu_calc_stripes_sizes.c +++ b/drivers/mxc/ipu3/ipu_calc_stripes_sizes.c @@ -250,13 +250,13 @@ int ipu_calc_stripes_sizes(const unsigned int input_frame_width, unsigned int status; unsigned int temp; unsigned int onw_min; - unsigned int inw, onw, inw_best = 0; + unsigned int inw = 0, onw = 0, inw_best = 0; /* number of pixels in the left stripe NOT hidden by the right stripe */ u64 irr_opt; /* the optimal inverse resizing ratio */ u64 rr_opt; /* the optimal resizing ratio = 1/irr_opt*/ u64 dinw; /* the misalignment between the stripes */ /* (measured in units of input columns) */ - u64 difwl, difwr; + u64 difwl, difwr = 0; /* The number of input columns not reflected in the output */ /* the resizing ratio used for the right stripe is */ /* left->irr and right->irr respectively */ |