mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-26 21:54:11 +08:00
selinux: avoid implicit conversions in the netif code
Use the identical type sel_netif_hashfn() returns. Signed-off-by: Christian Göttsche <cgzones@googlemail.com> [PM: subject line tweaks] Signed-off-by: Paul Moore <paul@paul-moore.com>
This commit is contained in:
parent
1f270f1c34
commit
777ea29c57
@ -67,7 +67,7 @@ static inline u32 sel_netif_hashfn(const struct net *ns, int ifindex)
|
||||
static inline struct sel_netif *sel_netif_find(const struct net *ns,
|
||||
int ifindex)
|
||||
{
|
||||
int idx = sel_netif_hashfn(ns, ifindex);
|
||||
u32 idx = sel_netif_hashfn(ns, ifindex);
|
||||
struct sel_netif *netif;
|
||||
|
||||
list_for_each_entry_rcu(netif, &sel_netif_hash[idx], list)
|
||||
@ -89,7 +89,7 @@ static inline struct sel_netif *sel_netif_find(const struct net *ns,
|
||||
*/
|
||||
static int sel_netif_insert(struct sel_netif *netif)
|
||||
{
|
||||
int idx;
|
||||
u32 idx;
|
||||
|
||||
if (sel_netif_total >= SEL_NETIF_HASH_MAX)
|
||||
return -ENOSPC;
|
||||
|
Loading…
Reference in New Issue
Block a user