diff options
author | Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> | 2018-07-16 15:19:26 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-07-18 08:21:49 +0300 |
commit | 49f3303a6eaa86c64597c33323d03ab0cbdccbe5 (patch) | |
tree | d5d12bc3d1e0dc29a79b5cc9ba7536bd3e61a222 /drivers/net/ethernet/renesas | |
parent | c94f2fc4fc19a0ab29456b652975e08e0362c94a (diff) | |
download | linux-49f3303a6eaa86c64597c33323d03ab0cbdccbe5.tar.xz |
ravb: fix warning about memcpy length
This fixes sparse warning:
ravb_main.c:1257 ravb_get_strings() error: memcpy() '*ravb_gstrings_stats' too small (32 vs 960)
Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/renesas')
-rw-r--r-- | drivers/net/ethernet/renesas/ravb_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/renesas/ravb_main.c b/drivers/net/ethernet/renesas/ravb_main.c index e5784f0eac3d..a100bccb3234 100644 --- a/drivers/net/ethernet/renesas/ravb_main.c +++ b/drivers/net/ethernet/renesas/ravb_main.c @@ -1258,7 +1258,7 @@ static void ravb_get_strings(struct net_device *ndev, u32 stringset, u8 *data) { switch (stringset) { case ETH_SS_STATS: - memcpy(data, *ravb_gstrings_stats, sizeof(ravb_gstrings_stats)); + memcpy(data, ravb_gstrings_stats, sizeof(ravb_gstrings_stats)); break; } } |