This fixes checkpatch errors :- "else should follow close brace '}'",
"space required before the open parenthesis '('" and "spaces required
around that '?' (ctx:VxW)" in drivers/staging/wimax/i2400m/rx.c file.

Signed-off-by: Hemansh Agnihotri <hemanshagnihotr...@gmail.com>
---
 drivers/staging/wimax/i2400m/rx.c | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/drivers/staging/wimax/i2400m/rx.c 
b/drivers/staging/wimax/i2400m/rx.c
index 5b3a85035f6a..8ea0bd039ed7 100644
--- a/drivers/staging/wimax/i2400m/rx.c
+++ b/drivers/staging/wimax/i2400m/rx.c
@@ -485,8 +485,7 @@ struct i2400m_roq_data {
  * store the sequence number (sn) and the cs (packet type) coming from
  * the RX payload header from the device.
  */
-struct i2400m_roq
-{
+struct i2400m_roq {
        unsigned ws;
        struct sk_buff_head queue;
        struct i2400m_roq_log *log;
@@ -556,7 +555,7 @@ void i2400m_roq_log_entry_print(struct i2400m *i2400m, 
unsigned index,
 {
        struct device *dev = i2400m_dev(i2400m);
 
-       switch(e->type) {
+       switch (e->type) {
        case I2400M_RO_TYPE_RESET:
                dev_err(dev, "q#%d reset           ws %u cnt %u sn %u/%u"
                        " - new nws %u\n",
@@ -1046,7 +1045,7 @@ void i2400m_rx_edata(struct i2400m *i2400m, struct 
sk_buff *skb_rx,
                         ro_type, ro_cin, roq->ws, ro_sn,
                         __i2400m_roq_nsn(roq, ro_sn), size);
                d_dump(2, dev, payload, size);
-               switch(ro_type) {
+               switch (ro_type) {
                case I2400M_RO_TYPE_RESET:
                        i2400m_roq_reset(i2400m, roq);
                        kfree_skb(skb); /* no data here */
@@ -1346,7 +1345,7 @@ int i2400m_rx_setup(struct i2400m *i2400m)
 {
        int result = 0;
 
-       i2400m->rx_reorder = i2400m_rx_reorder_disabled? 0 : 1;
+       i2400m->rx_reorder = i2400m_rx_reorder_disabled ? 0 : 1;
        if (i2400m->rx_reorder) {
                unsigned itr;
                struct i2400m_roq_log *rd;
@@ -1365,7 +1364,7 @@ int i2400m_rx_setup(struct i2400m *i2400m)
                        goto error_roq_log_alloc;
                }
 
-               for(itr = 0; itr < I2400M_RO_CIN + 1; itr++) {
+               for (itr = 0; itr < I2400M_RO_CIN + 1; itr++) {
                        __i2400m_roq_init(&i2400m->rx_roq[itr]);
                        i2400m->rx_roq[itr].log = &rd[itr];
                }
-- 
2.30.0

Reply via email to