From: Maya Nakamura Date: Thu, 18 Oct 2018 08:29:42 +0000 (-0700) Subject: staging: wlan-ng: Replace long int with long X-Git-Tag: v5.4-rc1~2324^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2bc51572aa6ce39cb2e21b73e5278bb7cd98762b;p=platform%2Fkernel%2Flinux-rpi.git staging: wlan-ng: Replace long int with long Replace long int with long as int is unnecessary according to the checkpatch.pl warning. K&R write, 'The word int can be omitted... and typically is.' Signed-off-by: Maya Nakamura Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/wlan-ng/p80211conv.c b/drivers/staging/wlan-ng/p80211conv.c index 91debcf2..0ff5fda 100644 --- a/drivers/staging/wlan-ng/p80211conv.c +++ b/drivers/staging/wlan-ng/p80211conv.c @@ -430,7 +430,7 @@ int skb_p80211_to_ether(struct wlandevice *wlandev, u32 ethconv, /* A bogus length ethfrm has been sent. */ /* Is someone trying an oflow attack? */ netdev_err(netdev, "DIXII frame too large (%ld > %d)\n", - (long int)(payload_length - + (long)(payload_length - sizeof(struct wlan_llc) - sizeof(struct wlan_snap)), netdev->mtu); return 1;