diff mbox series

[-net] skbuff: remove stale bit mask comments

Message ID 677a95d0-0db9-edec-0fa5-d7d3e1b5ec11@infradead.org
State Accepted
Delegated to: David Miller
Headers show
Series [-net] skbuff: remove stale bit mask comments | expand

Commit Message

Randy Dunlap Feb. 15, 2020, 9:41 p.m. UTC
From: Randy Dunlap <rdunlap@infradead.org>

Remove stale comments since this flag is no longer a bit mask
but is a bit field.

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
---
 net/core/skbuff.c |    2 --
 1 file changed, 2 deletions(-)

Comments

David Miller Feb. 17, 2020, 3:50 a.m. UTC | #1
From: Randy Dunlap <rdunlap@infradead.org>
Date: Sat, 15 Feb 2020 13:41:12 -0800

> From: Randy Dunlap <rdunlap@infradead.org>
> 
> Remove stale comments since this flag is no longer a bit mask
> but is a bit field.
> 
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>

Applied.
diff mbox series

Patch

--- lnx-56-rc1.orig/net/core/skbuff.c
+++ lnx-56-rc1/net/core/skbuff.c
@@ -467,7 +467,6 @@  struct sk_buff *__netdev_alloc_skb(struc
 		return NULL;
 	}
 
-	/* use OR instead of assignment to avoid clearing of bits in mask */
 	if (pfmemalloc)
 		skb->pfmemalloc = 1;
 	skb->head_frag = 1;
@@ -527,7 +526,6 @@  struct sk_buff *__napi_alloc_skb(struct
 		return NULL;
 	}
 
-	/* use OR instead of assignment to avoid clearing of bits in mask */
 	if (nc->page.pfmemalloc)
 		skb->pfmemalloc = 1;
 	skb->head_frag = 1;