nfc: netlink: Warning fix
authorChristophe Ricard <christophe.ricard@gmail.com>
Mon, 17 Aug 2015 06:33:43 +0000 (08:33 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 17 Aug 2015 08:45:19 +0000 (10:45 +0200)
commitadca3c38d807b341a965d0aba8721d0784d8471b
treea052a93b94330352f8bd78b52ee6de79e6b8fd58
parentfe202fe95564023223ce1910c9e352f391abb1d5
nfc: netlink: Warning fix

When NFC_ATTR_VENDOR_DATA is not set, data_len is 0 and data is NULL.

Fixes the following warning:

net/nfc/netlink.c:1536:3: warning: 'data' may be used uninitialized
+in this function [-Wmaybe-uninitialized]
      return cmd->doit(dev, data, data_len);

Cc: stable@vger.kernel.org
Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
net/nfc/netlink.c