mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
net: cleanup unsigned to unsigned int
Use of "unsigned int" is preferred to bare "unsigned" in net tree. Signed-off-by: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
5e73ea1a31
commit
95c9617472
167 changed files with 461 additions and 455 deletions
|
|
@ -129,7 +129,7 @@ static const struct net_proto_family phonet_proto_family = {
|
|||
/* Phonet device header operations */
|
||||
static int pn_header_create(struct sk_buff *skb, struct net_device *dev,
|
||||
unsigned short type, const void *daddr,
|
||||
const void *saddr, unsigned len)
|
||||
const void *saddr, unsigned int len)
|
||||
{
|
||||
u8 *media = skb_push(skb, 1);
|
||||
|
||||
|
|
|
|||
|
|
@ -273,7 +273,7 @@ static int pipe_rcv_status(struct sock *sk, struct sk_buff *skb)
|
|||
hdr = pnp_hdr(skb);
|
||||
if (hdr->data[0] != PN_PEP_TYPE_COMMON) {
|
||||
LIMIT_NETDEBUG(KERN_DEBUG"Phonet unknown PEP type: %u\n",
|
||||
(unsigned)hdr->data[0]);
|
||||
(unsigned int)hdr->data[0]);
|
||||
return -EOPNOTSUPP;
|
||||
}
|
||||
|
||||
|
|
@ -305,7 +305,7 @@ static int pipe_rcv_status(struct sock *sk, struct sk_buff *skb)
|
|||
|
||||
default:
|
||||
LIMIT_NETDEBUG(KERN_DEBUG"Phonet unknown PEP indication: %u\n",
|
||||
(unsigned)hdr->data[1]);
|
||||
(unsigned int)hdr->data[1]);
|
||||
return -EOPNOTSUPP;
|
||||
}
|
||||
if (wake)
|
||||
|
|
@ -478,9 +478,9 @@ static void pipe_destruct(struct sock *sk)
|
|||
skb_queue_purge(&pn->ctrlreq_queue);
|
||||
}
|
||||
|
||||
static u8 pipe_negotiate_fc(const u8 *fcs, unsigned n)
|
||||
static u8 pipe_negotiate_fc(const u8 *fcs, unsigned int n)
|
||||
{
|
||||
unsigned i;
|
||||
unsigned int i;
|
||||
u8 final_fc = PN_NO_FLOW_CONTROL;
|
||||
|
||||
for (i = 0; i < n; i++) {
|
||||
|
|
|
|||
|
|
@ -268,7 +268,7 @@ static int phonet_device_autoconf(struct net_device *dev)
|
|||
static void phonet_route_autodel(struct net_device *dev)
|
||||
{
|
||||
struct phonet_net *pnn = phonet_pernet(dev_net(dev));
|
||||
unsigned i;
|
||||
unsigned int i;
|
||||
DECLARE_BITMAP(deleted, 64);
|
||||
|
||||
/* Remove left-over Phonet routes */
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ static struct {
|
|||
|
||||
void __init pn_sock_init(void)
|
||||
{
|
||||
unsigned i;
|
||||
unsigned int i;
|
||||
|
||||
for (i = 0; i < PN_HASHSIZE; i++)
|
||||
INIT_HLIST_HEAD(pnsocks.hlist + i);
|
||||
|
|
@ -116,7 +116,7 @@ struct sock *pn_find_sock_by_sa(struct net *net, const struct sockaddr_pn *spn)
|
|||
void pn_deliver_sock_broadcast(struct net *net, struct sk_buff *skb)
|
||||
{
|
||||
struct hlist_head *hlist = pnsocks.hlist;
|
||||
unsigned h;
|
||||
unsigned int h;
|
||||
|
||||
rcu_read_lock();
|
||||
for (h = 0; h < PN_HASHSIZE; h++) {
|
||||
|
|
@ -545,7 +545,7 @@ static struct sock *pn_sock_get_idx(struct seq_file *seq, loff_t pos)
|
|||
struct hlist_head *hlist = pnsocks.hlist;
|
||||
struct hlist_node *node;
|
||||
struct sock *sknode;
|
||||
unsigned h;
|
||||
unsigned int h;
|
||||
|
||||
for (h = 0; h < PN_HASHSIZE; h++) {
|
||||
sk_for_each_rcu(sknode, node, hlist) {
|
||||
|
|
@ -710,7 +710,7 @@ int pn_sock_unbind_res(struct sock *sk, u8 res)
|
|||
|
||||
void pn_sock_unbind_all_res(struct sock *sk)
|
||||
{
|
||||
unsigned res, match = 0;
|
||||
unsigned int res, match = 0;
|
||||
|
||||
mutex_lock(&resource_mutex);
|
||||
for (res = 0; res < 256; res++) {
|
||||
|
|
@ -732,7 +732,7 @@ void pn_sock_unbind_all_res(struct sock *sk)
|
|||
static struct sock **pn_res_get_idx(struct seq_file *seq, loff_t pos)
|
||||
{
|
||||
struct net *net = seq_file_net(seq);
|
||||
unsigned i;
|
||||
unsigned int i;
|
||||
|
||||
if (!net_eq(net, &init_net))
|
||||
return NULL;
|
||||
|
|
@ -750,7 +750,7 @@ static struct sock **pn_res_get_idx(struct seq_file *seq, loff_t pos)
|
|||
static struct sock **pn_res_get_next(struct seq_file *seq, struct sock **sk)
|
||||
{
|
||||
struct net *net = seq_file_net(seq);
|
||||
unsigned i;
|
||||
unsigned int i;
|
||||
|
||||
BUG_ON(!net_eq(net, &init_net));
|
||||
|
||||
|
|
|
|||
|
|
@ -50,7 +50,8 @@ static void set_local_port_range(int range[2])
|
|||
|
||||
void phonet_get_local_port_range(int *min, int *max)
|
||||
{
|
||||
unsigned seq;
|
||||
unsigned int seq;
|
||||
|
||||
do {
|
||||
seq = read_seqbegin(&local_port_range_lock);
|
||||
if (min)
|
||||
|
|
|
|||
Loading…
Reference in a new issue