This repository has been archived by the owner on Nov 7, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/can: mcp25xxfd: Fix an incorrect memset() usage
/mnt/ssd/kernels/msm-4.9/drivers/net/can/spi/mcp25xxfd.c: In function ‘mcp25xxfd_can_ist_handle_status’: /mnt/ssd/kernels/msm-4.9/drivers/net/can/spi/mcp25xxfd.c:3005:2: warning: ‘memset’ used with length equal to number of elements without multiplication by element size [-Wmemset-elt-size] 3005 | memset(priv->can_err_data, 0, 8); | ^~~~~~ Fixes: 0d45bd3 ("driver: can: spi: add mcp25xxfd driver") Signed-off-by: Albert I <[email protected]>
- Loading branch information