drm/tinydrm: mipi-dbi: Silence: ‘cmd’ may be used uninitialized
authorNoralf Trønnes <noralf@tronnes.org>
Thu, 23 Feb 2017 13:29:55 +0000 (14:29 +0100)
committerDave Airlie <airlied@redhat.com>
Fri, 24 Feb 2017 02:08:58 +0000 (12:08 +1000)
commitb401f34314db7c60e6d23ee7771cd090b4ef56c1
tree74866bca0c2b4c2d4e2b07c3cdd997f9bf621fa9
parent1e8ad3d8da4763b238d09244d4d1177aa640c0d3
drm/tinydrm: mipi-dbi: Silence: ‘cmd’ may be used uninitialized

Fix this warning:
drivers/gpu/drm/tinydrm/mipi-dbi.c: In function ‘mipi_dbi_debugfs_command_write’:
drivers/gpu/drm/tinydrm/mipi-dbi.c:905:8: warning: ‘cmd’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  ret = mipi_dbi_command_buf(mipi, cmd, parameters, i);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

cmd can't be used uninitialized, but to satisfy the compiler,
initialize it to zero.

Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/tinydrm/mipi-dbi.c