DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] kni: fix double #else typo
@ 2022-06-06  6:06 Jiri Slaby
  0 siblings, 0 replies; only message in thread
From: Jiri Slaby @ 2022-06-06  6:06 UTC (permalink / raw)
  To: dev
  Cc: Jiri Slaby, Andrew Rybchenko, Stephen Hemminger, Ferruh Yigit,
	mingli.yu, Min Hu (Connor),
	stable

Commit c98600d4bed6 (kni: fix build with Linux 5.18), added a new
preprocessor sequence:
 #if ...
 ...
 #else
 ...
 #else

The latter #else should have been #endif obviously and I forgot to amend
that change to the commit above. Fix this.

Cc: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Cc: Stephen Hemminger <stephen@networkplumber.org>
Cc: Ferruh Yigit <ferruh.yigit@intel.com>
Cc: mingli.yu@windriver.com,
Cc: "Min Hu (Connor)" <humin29@huawei.com>
Cc: <stable@dpdk.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
---
 kernel/linux/kni/kni_net.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/linux/kni/kni_net.c b/kernel/linux/kni/kni_net.c
index a8b092b7567d..41805fcabf7b 100644
--- a/kernel/linux/kni/kni_net.c
+++ b/kernel/linux/kni/kni_net.c
@@ -445,7 +445,7 @@ kni_net_rx_normal(struct kni_dev *kni)
 		netif_rx_ni(skb);
 #else
 		netif_rx(skb);
-#else
+#endif
 
 		/* Update statistics */
 		dev->stats.rx_bytes += len;
-- 
2.36.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-07  8:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-06  6:06 [PATCH] kni: fix double #else typo Jiri Slaby

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).