]> git.baikalelectronics.ru Git - kernel.git/commit
netlabel: use GFP flags from caller instead of GFP_ATOMIC
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 21 Mar 2012 20:41:01 +0000 (20:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Mar 2012 23:29:57 +0000 (19:29 -0400)
commit9af1f4e09b5a377f91bdc51944949e3529ecedd1
tree4c9b7796fc958bd760e64b0726da01c62a6db9ec
parentacc86a0b7d73e10f23aebad6eb3de1f65f9cfe7c
netlabel: use GFP flags from caller instead of GFP_ATOMIC

This function takes a GFP flags as a parameter, but they are never used.
We don't take a lock in this function so there is no reason to prefer
GFP_ATOMIC over the caller's GFP flags.

There is only one caller, cipso_v4_map_cat_rng_ntoh(), and it passes
GFP_ATOMIC as the GFP flags so this doesn't change how the code works.
It's just a cleanup.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlabel/netlabel_kapi.c