net: wireless: rockchip_wlan: ssv6xxx: Fix gcc warning

drivers/net/wireless/rockchip_wlan/ssv6xxx/ssvdevice/ssv_cmd.c: In function 'ssv_cmd_dump':
drivers/net/wireless/rockchip_wlan/ssv6xxx/ssvdevice/ssv_cmd.c:387:3: error: argument 1 null where non-null expected [-Werror=nonnull]
   strcpy(ssv6xxx_result_buf, "ssv6xxx_result_buf = NULL!!\n");
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Change-Id: I883d9f17814c25c0d8f7611dc99944f6b072b002
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
This commit is contained in:
Tao Huang 2018-09-12 20:55:41 +08:00
parent 1a1369766b
commit b63e1e68d8

View File

@ -384,7 +384,7 @@ static int ssv_cmd_dump(int argc, char *argv[])
int s;
if(!ssv6xxx_result_buf)
{
strcpy(ssv6xxx_result_buf, "ssv6xxx_result_buf = NULL!!\n");
printk("ssv6xxx_result_buf = NULL!!\n");
return -1;
}
if (argc != 2)