mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 22:14:04 +02:00
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:
parent
1a1369766b
commit
b63e1e68d8
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user