mirror of
https://github.com/torvalds/linux.git
synced 2024-11-20 11:01:38 +00:00
e1000e: fix checkpatch warning from MINMAX test
WARNING: min() should probably be min_t(unsigned int, 4, skb->data_len) Signed-off-by: Bruce Allan <bruce.w.allan@intel.com> Tested-by: Aaron Brown <aaron.f.brown@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
24b706b2f4
commit
a2a5b3235d
@ -5023,7 +5023,7 @@ static netdev_tx_t e1000_xmit_frame(struct sk_buff *skb,
|
||||
if (skb->data_len && (hdr_len == len)) {
|
||||
unsigned int pull_size;
|
||||
|
||||
pull_size = min((unsigned int)4, skb->data_len);
|
||||
pull_size = min_t(unsigned int, 4, skb->data_len);
|
||||
if (!__pskb_pull_tail(skb, pull_size)) {
|
||||
e_err("__pskb_pull_tail failed.\n");
|
||||
dev_kfree_skb_any(skb);
|
||||
|
Loading…
Reference in New Issue
Block a user