af_key: remove unnecessary break after return
authorFabian Frederick <fabf@skynet.be>
Mon, 14 Jul 2014 16:30:59 +0000 (18:30 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Jul 2014 23:27:00 +0000 (16:27 -0700)
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/key/af_key.c

index ba2a2f95911c99732dc2e3fb1ae37b9f977d1f5a..1847ec4e39305f205c68acaf50579bfceff4d91f 100644 (file)
@@ -405,7 +405,6 @@ static int verify_address_len(const void *p)
                 * XXX When it can, remove this -EINVAL.  -DaveM
                 */
                return -EINVAL;
-               break;
        }
 
        return 0;
@@ -536,7 +535,6 @@ pfkey_satype2proto(uint8_t satype)
                return IPPROTO_ESP;
        case SADB_X_SATYPE_IPCOMP:
                return IPPROTO_COMP;
-               break;
        default:
                return 0;
        }
@@ -553,7 +551,6 @@ pfkey_proto2satype(uint16_t proto)
                return SADB_SATYPE_ESP;
        case IPPROTO_COMP:
                return SADB_X_SATYPE_IPCOMP;
-               break;
        default:
                return 0;
        }