diff options
author | Christophe Ricard | 2015-08-17 08:33:43 +0200 |
---|---|---|
committer | Samuel Ortiz | 2015-08-17 10:45:19 +0200 |
commit | adca3c38d807b341a965d0aba8721d0784d8471b (patch) | |
tree | a052a93b94330352f8bd78b52ee6de79e6b8fd58 /net/nfc/nci | |
parent | fe202fe95564023223ce1910c9e352f391abb1d5 (diff) |
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>
Diffstat (limited to 'net/nfc/nci')
0 files changed, 0 insertions, 0 deletions