diff mbox

v4l2-ctrl: Suppress build warning from v4l2_ctrl_new_std_menu()

Message ID 1376856319-5110-1-git-send-email-s.nawrocki@samsung.com (mailing list archive)
State New, archived
Headers show

Commit Message

Sylwester Nawrocki Aug. 18, 2013, 8:05 p.m. UTC
Prevent following build warning:

drivers/media/v4l2-core/v4l2-ctrls.c: In function ‘v4l2_ctrl_new_std_menu’:
drivers/media/v4l2-core/v4l2-ctrls.c:1768:15: warning: 'qmenu_int_len’ may be used uninitialized in this function

Cc: Arun Kumar K <arun.kk@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
---
 drivers/media/v4l2-core/v4l2-ctrls.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff mbox

Patch

diff --git a/drivers/media/v4l2-core/v4l2-ctrls.c b/drivers/media/v4l2-core/v4l2-ctrls.c
index c6dc1fd..c3f0803 100644
--- a/drivers/media/v4l2-core/v4l2-ctrls.c
+++ b/drivers/media/v4l2-core/v4l2-ctrls.c
@@ -1763,9 +1763,9 @@  struct v4l2_ctrl *v4l2_ctrl_new_std_menu(struct v4l2_ctrl_handler *hdl,
 {
 	const char * const *qmenu = NULL;
 	const s64 *qmenu_int = NULL;
+	unsigned int qmenu_int_len = 0;
 	const char *name;
 	enum v4l2_ctrl_type type;
-	unsigned int qmenu_int_len;
 	s32 min;
 	s32 step;
 	u32 flags;