Commit b951c6da authored by Shraddha Barke's avatar Shraddha Barke Committed by Greg Kroah-Hartman

Staging: gdm72xx: Add space around that "+", "&" and "|"

Add missing spaces around "+", "&" and "|" to follow kernel coding
style. Warning detected by checkpatch.
Signed-off-by: default avatarShraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 50dcad2a
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#define HCI_HEADER_SIZE 4 #define HCI_HEADER_SIZE 4
#define HCI_VALUE_OFFS (HCI_HEADER_SIZE) #define HCI_VALUE_OFFS (HCI_HEADER_SIZE)
#define HCI_MAX_PACKET 2048 #define HCI_MAX_PACKET 2048
#define HCI_MAX_PARAM (HCI_MAX_PACKET-HCI_HEADER_SIZE) #define HCI_MAX_PARAM (HCI_MAX_PACKET - HCI_HEADER_SIZE)
#define HCI_MAX_TLV 32 #define HCI_MAX_TLV 32
/* CMD-EVT */ /* CMD-EVT */
......
...@@ -29,8 +29,8 @@ ...@@ -29,8 +29,8 @@
#define ND_NLMSG_SPACE(len) (nlmsg_total_size(len) + ND_IFINDEX_LEN) #define ND_NLMSG_SPACE(len) (nlmsg_total_size(len) + ND_IFINDEX_LEN)
#define ND_NLMSG_DATA(nlh) \ #define ND_NLMSG_DATA(nlh) \
((void *)((char *)nlmsg_data(nlh) + ND_IFINDEX_LEN)) ((void *)((char *)nlmsg_data(nlh) + ND_IFINDEX_LEN))
#define ND_NLMSG_S_LEN(len) (len+ND_IFINDEX_LEN) #define ND_NLMSG_S_LEN(len) (len + ND_IFINDEX_LEN)
#define ND_NLMSG_R_LEN(nlh) (nlh->nlmsg_len-ND_IFINDEX_LEN) #define ND_NLMSG_R_LEN(nlh) (nlh->nlmsg_len - ND_IFINDEX_LEN)
#define ND_NLMSG_IFIDX(nlh) nlmsg_data(nlh) #define ND_NLMSG_IFIDX(nlh) nlmsg_data(nlh)
#define ND_MAX_MSG_LEN 8096 #define ND_MAX_MSG_LEN 8096
...@@ -143,7 +143,7 @@ int netlink_send(struct sock *sock, int group, u16 type, void *msg, int len) ...@@ -143,7 +143,7 @@ int netlink_send(struct sock *sock, int group, u16 type, void *msg, int len)
NETLINK_CB(skb).portid = 0; NETLINK_CB(skb).portid = 0;
NETLINK_CB(skb).dst_group = 0; NETLINK_CB(skb).dst_group = 0;
ret = netlink_broadcast(sock, skb, 0, group+1, GFP_ATOMIC); ret = netlink_broadcast(sock, skb, 0, group + 1, GFP_ATOMIC);
if (!ret) if (!ret)
return len; return len;
......
...@@ -96,7 +96,7 @@ static int download_image(struct sdio_func *func, const char *img_name) ...@@ -96,7 +96,7 @@ static int download_image(struct sdio_func *func, const char *img_name)
buf[1] = (len >> 8) & 0xff; buf[1] = (len >> 8) & 0xff;
buf[2] = (len >> 16) & 0xff; buf[2] = (len >> 16) & 0xff;
memcpy(buf+TYPE_A_HEADER_SIZE, firm->data + pos, len); memcpy(buf + TYPE_A_HEADER_SIZE, firm->data + pos, len);
ret = sdio_memcpy_toio(func, 0, buf, len + TYPE_A_HEADER_SIZE); ret = sdio_memcpy_toio(func, 0, buf, len + TYPE_A_HEADER_SIZE);
if (ret < 0) { if (ret < 0) {
dev_err(&func->dev, dev_err(&func->dev,
......
...@@ -292,8 +292,8 @@ static int em_download_image(struct usb_device *usbdev, const char *img_name, ...@@ -292,8 +292,8 @@ static int em_download_image(struct usb_device *usbdev, const char *img_name,
return -ENOMEM; return -ENOMEM;
} }
strcpy(buf+pad_size, type_string); strcpy(buf + pad_size, type_string);
ret = gdm_wibro_send(usbdev, buf, strlen(type_string)+pad_size); ret = gdm_wibro_send(usbdev, buf, strlen(type_string) + pad_size);
if (ret < 0) if (ret < 0)
goto out; goto out;
...@@ -310,8 +310,8 @@ static int em_download_image(struct usb_device *usbdev, const char *img_name, ...@@ -310,8 +310,8 @@ static int em_download_image(struct usb_device *usbdev, const char *img_name,
else else
len = img_len; /* the last chunk of data */ len = img_len; /* the last chunk of data */
memcpy(buf+pad_size, firm->data + pos, len); memcpy(buf + pad_size, firm->data + pos, len);
ret = gdm_wibro_send(usbdev, buf, len+pad_size); ret = gdm_wibro_send(usbdev, buf, len + pad_size);
if (ret < 0) if (ret < 0)
goto out; goto out;
...@@ -319,7 +319,7 @@ static int em_download_image(struct usb_device *usbdev, const char *img_name, ...@@ -319,7 +319,7 @@ static int em_download_image(struct usb_device *usbdev, const char *img_name,
img_len -= DOWNLOAD_CHUCK; img_len -= DOWNLOAD_CHUCK;
pos += DOWNLOAD_CHUCK; pos += DOWNLOAD_CHUCK;
ret = em_wait_ack(usbdev, ((len+pad_size) % 512 == 0)); ret = em_wait_ack(usbdev, ((len + pad_size) % 512 == 0));
if (ret < 0) if (ret < 0)
goto out; goto out;
} }
......
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