net: hdlc_cisco: fix the code style issue about "foo* bar"
Fix the checkpatch error as "foo* bar" and should be "foo *bar", and "(foo*)" should be "(foo *)". Signed-off-by: Peng Li <lipeng321@huawei.com> Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -58,7 +58,7 @@ struct cisco_state {
|
|||||||
|
|
||||||
static int cisco_ioctl(struct net_device *dev, struct ifreq *ifr);
|
static int cisco_ioctl(struct net_device *dev, struct ifreq *ifr);
|
||||||
|
|
||||||
static inline struct cisco_state* state(hdlc_device *hdlc)
|
static inline struct cisco_state *state(hdlc_device *hdlc)
|
||||||
{
|
{
|
||||||
return (struct cisco_state *)hdlc->state;
|
return (struct cisco_state *)hdlc->state;
|
||||||
}
|
}
|
||||||
@@ -73,7 +73,7 @@ static int cisco_hard_header(struct sk_buff *skb, struct net_device *dev,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
skb_push(skb, sizeof(struct hdlc_header));
|
skb_push(skb, sizeof(struct hdlc_header));
|
||||||
data = (struct hdlc_header*)skb->data;
|
data = (struct hdlc_header *)skb->data;
|
||||||
if (type == CISCO_KEEPALIVE)
|
if (type == CISCO_KEEPALIVE)
|
||||||
data->address = CISCO_MULTICAST;
|
data->address = CISCO_MULTICAST;
|
||||||
else
|
else
|
||||||
@@ -98,7 +98,7 @@ static void cisco_keepalive_send(struct net_device *dev, u32 type,
|
|||||||
}
|
}
|
||||||
skb_reserve(skb, 4);
|
skb_reserve(skb, 4);
|
||||||
cisco_hard_header(skb, dev, CISCO_KEEPALIVE, NULL, NULL, 0);
|
cisco_hard_header(skb, dev, CISCO_KEEPALIVE, NULL, NULL, 0);
|
||||||
data = (struct cisco_packet*)(skb->data + 4);
|
data = (struct cisco_packet *)(skb->data + 4);
|
||||||
|
|
||||||
data->type = htonl(type);
|
data->type = htonl(type);
|
||||||
data->par1 = par1;
|
data->par1 = par1;
|
||||||
@@ -118,7 +118,7 @@ static void cisco_keepalive_send(struct net_device *dev, u32 type,
|
|||||||
|
|
||||||
static __be16 cisco_type_trans(struct sk_buff *skb, struct net_device *dev)
|
static __be16 cisco_type_trans(struct sk_buff *skb, struct net_device *dev)
|
||||||
{
|
{
|
||||||
struct hdlc_header *data = (struct hdlc_header*)skb->data;
|
struct hdlc_header *data = (struct hdlc_header *)skb->data;
|
||||||
|
|
||||||
if (skb->len < sizeof(struct hdlc_header))
|
if (skb->len < sizeof(struct hdlc_header))
|
||||||
return cpu_to_be16(ETH_P_HDLC);
|
return cpu_to_be16(ETH_P_HDLC);
|
||||||
@@ -143,7 +143,7 @@ static int cisco_rx(struct sk_buff *skb)
|
|||||||
struct net_device *dev = skb->dev;
|
struct net_device *dev = skb->dev;
|
||||||
hdlc_device *hdlc = dev_to_hdlc(dev);
|
hdlc_device *hdlc = dev_to_hdlc(dev);
|
||||||
struct cisco_state *st = state(hdlc);
|
struct cisco_state *st = state(hdlc);
|
||||||
struct hdlc_header *data = (struct hdlc_header*)skb->data;
|
struct hdlc_header *data = (struct hdlc_header *)skb->data;
|
||||||
struct cisco_packet *cisco_data;
|
struct cisco_packet *cisco_data;
|
||||||
struct in_device *in_dev;
|
struct in_device *in_dev;
|
||||||
__be32 addr, mask;
|
__be32 addr, mask;
|
||||||
@@ -172,7 +172,7 @@ static int cisco_rx(struct sk_buff *skb)
|
|||||||
goto rx_error;
|
goto rx_error;
|
||||||
}
|
}
|
||||||
|
|
||||||
cisco_data = (struct cisco_packet*)(skb->data + sizeof
|
cisco_data = (struct cisco_packet *)(skb->data + sizeof
|
||||||
(struct hdlc_header));
|
(struct hdlc_header));
|
||||||
|
|
||||||
switch (ntohl (cisco_data->type)) {
|
switch (ntohl (cisco_data->type)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user