diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-04-28 05:13:41 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-28 11:58:27 -0400 |
commit | c60264c494a119cd3a716a22edc0137b11de6d1e (patch) | |
tree | db985b1529a6a136a7f439a9a557bcb80278e471 /security | |
parent | 3898b1b4ebff8dcfbcf1807e0661585e06c9a91c (diff) |
smack: fix integer as NULL pointer warning in smack_lsm.c
security/smack/smack_lsm.c:1257:16: warning: Using plain integer as NULL pointer
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Acked-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'security')
-rw-r--r-- | security/smack/smack_lsm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/smack/smack_lsm.c b/security/smack/smack_lsm.c index 4215971434e6..430f97b9d04a 100644 --- a/security/smack/smack_lsm.c +++ b/security/smack/smack_lsm.c | |||
@@ -1242,7 +1242,7 @@ static void smack_set_catset(char *catset, struct netlbl_lsm_secattr *sap) | |||
1242 | int rc; | 1242 | int rc; |
1243 | int byte; | 1243 | int byte; |
1244 | 1244 | ||
1245 | if (catset == 0) | 1245 | if (!catset) |
1246 | return; | 1246 | return; |
1247 | 1247 | ||
1248 | sap->flags |= NETLBL_SECATTR_MLS_CAT; | 1248 | sap->flags |= NETLBL_SECATTR_MLS_CAT; |