diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2021-02-23 12:20:03 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-02-25 18:41:32 +0100 |
commit | fcd4ba3bcba78a97a0f8bdb5df37bc74820f9a62 (patch) | |
tree | 1c75f425aca6a2bbb1e7d69fadbee73b78c2608f /net/hsr/hsr_framereg.c | |
parent | ibmvnic: fix a race between open and reset (diff) | |
download | linux-fcd4ba3bcba78a97a0f8bdb5df37bc74820f9a62.tar.xz linux-fcd4ba3bcba78a97a0f8bdb5df37bc74820f9a62.zip |
net: dsa: sja1105: Remove unneeded cast in sja1105_crc32()
sja1105_unpack() takes a "const void *buf" as its first parameter, so
there is no need to cast away the "const" of the "buf" variable before
calling it.
Drop the cast, as it prevents the compiler performing some checks.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Link: https://lore.kernel.org/r/20210223112003.2223332-1-geert+renesas@glider.be
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/hsr/hsr_framereg.c')
0 files changed, 0 insertions, 0 deletions