Commit 9d2f1123 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by David S. Miller

net: delete "register" keyword

Delete long obsoleted "register" keyword.
Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4b4de398
...@@ -815,8 +815,8 @@ static int reverse6[64] = { ...@@ -815,8 +815,8 @@ static int reverse6[64] = {
static unsigned int static unsigned int
crc416(unsigned int curval, unsigned short nxtval) crc416(unsigned int curval, unsigned short nxtval)
{ {
register unsigned int counter, cur = curval, next = nxtval; unsigned int counter, cur = curval, next = nxtval;
register int high_crc_set, low_data_set; int high_crc_set, low_data_set;
/* Swap bytes */ /* Swap bytes */
next = ((next & 0x00FF) << 8) | (next >> 8); next = ((next & 0x00FF) << 8) | (next >> 8);
......
...@@ -91,8 +91,8 @@ static unsigned short pull16(unsigned char **cpp); ...@@ -91,8 +91,8 @@ static unsigned short pull16(unsigned char **cpp);
struct slcompress * struct slcompress *
slhc_init(int rslots, int tslots) slhc_init(int rslots, int tslots)
{ {
register short i; short i;
register struct cstate *ts; struct cstate *ts;
struct slcompress *comp; struct slcompress *comp;
if (rslots < 0 || rslots > 255 || tslots < 0 || tslots > 255) if (rslots < 0 || rslots > 255 || tslots < 0 || tslots > 255)
...@@ -206,7 +206,7 @@ pull16(unsigned char **cpp) ...@@ -206,7 +206,7 @@ pull16(unsigned char **cpp)
static long static long
decode(unsigned char **cpp) decode(unsigned char **cpp)
{ {
register int x; int x;
x = *(*cpp)++; x = *(*cpp)++;
if(x == 0){ if(x == 0){
...@@ -227,14 +227,14 @@ int ...@@ -227,14 +227,14 @@ int
slhc_compress(struct slcompress *comp, unsigned char *icp, int isize, slhc_compress(struct slcompress *comp, unsigned char *icp, int isize,
unsigned char *ocp, unsigned char **cpp, int compress_cid) unsigned char *ocp, unsigned char **cpp, int compress_cid)
{ {
register struct cstate *ocs = &(comp->tstate[comp->xmit_oldest]); struct cstate *ocs = &(comp->tstate[comp->xmit_oldest]);
register struct cstate *lcs = ocs; struct cstate *lcs = ocs;
register struct cstate *cs = lcs->next; struct cstate *cs = lcs->next;
register unsigned long deltaS, deltaA; unsigned long deltaS, deltaA;
register short changes = 0; short changes = 0;
int hlen; int hlen;
unsigned char new_seq[16]; unsigned char new_seq[16];
register unsigned char *cp = new_seq; unsigned char *cp = new_seq;
struct iphdr *ip; struct iphdr *ip;
struct tcphdr *th, *oth; struct tcphdr *th, *oth;
__sum16 csum; __sum16 csum;
...@@ -486,11 +486,11 @@ slhc_compress(struct slcompress *comp, unsigned char *icp, int isize, ...@@ -486,11 +486,11 @@ slhc_compress(struct slcompress *comp, unsigned char *icp, int isize,
int int
slhc_uncompress(struct slcompress *comp, unsigned char *icp, int isize) slhc_uncompress(struct slcompress *comp, unsigned char *icp, int isize)
{ {
register int changes; int changes;
long x; long x;
register struct tcphdr *thp; struct tcphdr *thp;
register struct iphdr *ip; struct iphdr *ip;
register struct cstate *cs; struct cstate *cs;
int len, hdrlen; int len, hdrlen;
unsigned char *cp = icp; unsigned char *cp = icp;
...@@ -543,7 +543,7 @@ slhc_uncompress(struct slcompress *comp, unsigned char *icp, int isize) ...@@ -543,7 +543,7 @@ slhc_uncompress(struct slcompress *comp, unsigned char *icp, int isize)
switch(changes & SPECIALS_MASK){ switch(changes & SPECIALS_MASK){
case SPECIAL_I: /* Echoed terminal traffic */ case SPECIAL_I: /* Echoed terminal traffic */
{ {
register short i; short i;
i = ntohs(ip->tot_len) - hdrlen; i = ntohs(ip->tot_len) - hdrlen;
thp->ack_seq = htonl( ntohl(thp->ack_seq) + i); thp->ack_seq = htonl( ntohl(thp->ack_seq) + i);
thp->seq = htonl( ntohl(thp->seq) + i); thp->seq = htonl( ntohl(thp->seq) + i);
...@@ -637,7 +637,7 @@ slhc_uncompress(struct slcompress *comp, unsigned char *icp, int isize) ...@@ -637,7 +637,7 @@ slhc_uncompress(struct slcompress *comp, unsigned char *icp, int isize)
int int
slhc_remember(struct slcompress *comp, unsigned char *icp, int isize) slhc_remember(struct slcompress *comp, unsigned char *icp, int isize)
{ {
register struct cstate *cs; struct cstate *cs;
unsigned ihl; unsigned ihl;
unsigned char index; unsigned char index;
......
...@@ -262,7 +262,7 @@ static inline unsigned int ...@@ -262,7 +262,7 @@ static inline unsigned int
ip_vs_svc_hashkey(struct netns_ipvs *ipvs, int af, unsigned int proto, ip_vs_svc_hashkey(struct netns_ipvs *ipvs, int af, unsigned int proto,
const union nf_inet_addr *addr, __be16 port) const union nf_inet_addr *addr, __be16 port)
{ {
register unsigned int porth = ntohs(port); unsigned int porth = ntohs(port);
__be32 addr_fold = addr->ip; __be32 addr_fold = addr->ip;
__u32 ahash; __u32 ahash;
...@@ -493,7 +493,7 @@ static inline unsigned int ip_vs_rs_hashkey(int af, ...@@ -493,7 +493,7 @@ static inline unsigned int ip_vs_rs_hashkey(int af,
const union nf_inet_addr *addr, const union nf_inet_addr *addr,
__be16 port) __be16 port)
{ {
register unsigned int porth = ntohs(port); unsigned int porth = ntohs(port);
__be32 addr_fold = addr->ip; __be32 addr_fold = addr->ip;
#ifdef CONFIG_IP_VS_IPV6 #ifdef CONFIG_IP_VS_IPV6
......
...@@ -160,7 +160,7 @@ static void ip_vs_dest_set_eraseall(struct ip_vs_dest_set *set) ...@@ -160,7 +160,7 @@ static void ip_vs_dest_set_eraseall(struct ip_vs_dest_set *set)
/* get weighted least-connection node in the destination set */ /* get weighted least-connection node in the destination set */
static inline struct ip_vs_dest *ip_vs_dest_set_min(struct ip_vs_dest_set *set) static inline struct ip_vs_dest *ip_vs_dest_set_min(struct ip_vs_dest_set *set)
{ {
register struct ip_vs_dest_set_elem *e; struct ip_vs_dest_set_elem *e;
struct ip_vs_dest *dest, *least; struct ip_vs_dest *dest, *least;
int loh, doh; int loh, doh;
...@@ -209,7 +209,7 @@ static inline struct ip_vs_dest *ip_vs_dest_set_min(struct ip_vs_dest_set *set) ...@@ -209,7 +209,7 @@ static inline struct ip_vs_dest *ip_vs_dest_set_min(struct ip_vs_dest_set *set)
/* get weighted most-connection node in the destination set */ /* get weighted most-connection node in the destination set */
static inline struct ip_vs_dest *ip_vs_dest_set_max(struct ip_vs_dest_set *set) static inline struct ip_vs_dest *ip_vs_dest_set_max(struct ip_vs_dest_set *set)
{ {
register struct ip_vs_dest_set_elem *e; struct ip_vs_dest_set_elem *e;
struct ip_vs_dest *dest, *most; struct ip_vs_dest *dest, *most;
int moh, doh; int moh, doh;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment