treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / net / wireless / quantenna / qtnfmac / switchdev.h
blobb962e670c4b065ca3d3c0ae6e1de4a858a05f231
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /* Copyright (c) 2019 Quantenna Communications. All rights reserved. */
4 #ifndef QTNFMAC_SWITCHDEV_H_
5 #define QTNFMAC_SWITCHDEV_H_
7 #include <linux/skbuff.h>
9 #ifdef CONFIG_NET_SWITCHDEV
11 static inline void qtnfmac_switch_mark_skb_flooded(struct sk_buff *skb)
13 skb->offload_fwd_mark = 1;
16 #else
18 static inline void qtnfmac_switch_mark_skb_flooded(struct sk_buff *skb)
22 #endif
24 #endif /* QTNFMAC_SWITCHDEV_H_ */