irda: remove unnecessary break after return
authorFabian Frederick <fabf@skynet.be>
Mon, 14 Jul 2014 16:36:37 +0000 (18:36 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Jul 2014 23:27:01 +0000 (16:27 -0700)
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/irda/af_irda.c
net/irda/irlan/irlan_common.c

index 54747c25c86c47709f875cf1a7c1f37872fb8fa1..92fafd485deb610cad0e6a03ac41ede8aed29553 100644 (file)
@@ -674,7 +674,6 @@ static int irda_discover_daddr_and_lsap_sel(struct irda_sock *self, char *name)
                        self->daddr = DEV_ADDR_ANY;
                        kfree(discoveries);
                        return -EHOSTUNREACH;
-                       break;
                }
        }
        /* Cleanup our copy of the discovery log */
index 7ac4d1becbfca373330c8618b4f865c304433e95..1bc49edf22966fdce8c8fbf136a3c4e7800fe5b8 100644 (file)
@@ -1024,7 +1024,6 @@ static int __irlan_insert_param(struct sk_buff *skb, char *param, int type,
        default:
                IRDA_DEBUG(2, "%s(), Unknown parameter type!\n", __func__ );
                return 0;
-               break;
        }
 
        /* Insert at end of sk-buffer */