[media] v4l2-ctrl: Suppress build warning from v4l2_ctrl_new_std_menu()
authorSylwester Nawrocki <sylvester.nawrocki@gmail.com>
Sun, 18 Aug 2013 19:05:19 +0000 (16:05 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Sat, 24 Aug 2013 07:17:50 +0000 (04:17 -0300)
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

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Cc: Arun Kumar K <arun.kk@samsung.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/v4l2-core/v4l2-ctrls.c

index c6dc1fd427d7b01dc859ec9f2198c401c3c9f006..c3f0803886843d3b3c0ac8abd8474cf23dddd301 100644 (file)
@@ -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;