summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBurcin Akalin <brcnakalin@gmail.com>2015-10-31 22:56:50 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-11-16 04:02:47 (GMT)
commit20437125c4dc3851d1a4ed9d01827fa8abe97c95 (patch)
treeba66b9be549d5e44415b2cb492d010dd34203e07
parent053124a34d968417934406c2fb111ae5b397e376 (diff)
downloadlinux-20437125c4dc3851d1a4ed9d01827fa8abe97c95.tar.xz
staging: gdm72xx: Add space around '+'
Add space around operator '+'. Problem found using checkpatch.pl CHECK: spaces preferred around that '+' (ctx:VxV) Signed-off-by: Burcin Akalin <brcnakalin@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/gdm72xx/gdm_qos.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/staging/gdm72xx/gdm_qos.c b/drivers/staging/gdm72xx/gdm_qos.c
index 27f6054..500476d 100644
--- a/drivers/staging/gdm72xx/gdm_qos.c
+++ b/drivers/staging/gdm72xx/gdm_qos.c
@@ -171,13 +171,13 @@ static int chk_ipv4_rule(struct gdm_wimax_csr_s *csr, u8 *stream, u8 *port)
}
if (csr->classifier_rule_en & PROTOCOLSRCPORTRANGE) {
- i = ((port[0]<<8) & 0xff00)+port[1];
+ i = ((port[0]<<8) & 0xff00) + port[1];
if ((i < csr->srcport_lo) || (i > csr->srcport_hi))
return 1;
}
if (csr->classifier_rule_en & PROTOCOLDSTPORTRANGE) {
- i = ((port[2]<<8) & 0xff00)+port[3];
+ i = ((port[2]<<8) & 0xff00) + port[3];
if ((i < csr->dstport_lo) || (i > csr->dstport_hi))
return 1;
}
@@ -342,17 +342,17 @@ void gdm_recv_qos_hci_packet(void *nic_ptr, u8 *buf, int size)
if (sub_cmd_evt == QOS_REPORT) {
spin_lock_irqsave(&qcb->qos_lock, flags);
for (i = 0; i < qcb->qos_list_cnt; i++) {
- sfid = ((buf[(i*5)+6]<<24) & 0xff000000);
- sfid += ((buf[(i*5)+7]<<16) & 0xff0000);
- sfid += ((buf[(i*5)+8]<<8) & 0xff00);
- sfid += (buf[(i*5)+9]);
+ sfid = ((buf[(i*5) + 6]<<24) & 0xff000000);
+ sfid += ((buf[(i*5) + 7]<<16) & 0xff0000);
+ sfid += ((buf[(i*5) + 8]<<8) & 0xff00);
+ sfid += (buf[(i*5) + 9]);
index = get_csr(qcb, sfid, 0);
if (index == -1) {
spin_unlock_irqrestore(&qcb->qos_lock, flags);
netdev_err(nic->netdev, "QoS ERROR: No SF\n");
return;
}
- qcb->csr[index].qos_buf_count = buf[(i*5)+10];
+ qcb->csr[index].qos_buf_count = buf[(i*5) + 10];
}
extract_qos_list(nic, &send_list);