]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
crypto: qat - cleanup unnecessary break checkpatch warning
authorBruce Allan <bruce.w.allan@intel.com>
Wed, 15 Oct 2014 18:33:27 +0000 (11:33 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 24 Oct 2014 14:49:39 +0000 (22:49 +0800)
WARNING:UNNECESSARY_BREAK: break is not useful after a goto or return
#472: FILE: drivers/crypto/qat/qat_common/qat_algs.c:472:
+               goto bad_key;
+               break;

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qat/qat_common/qat_algs.c

index f2e2f158cfbecec1bbef49a5b061d824c2365b3e..25a409ca2d2acc1c380d7fad36d56e6e62012a20 100644 (file)
@@ -466,7 +466,6 @@ static int qat_alg_init_sessions(struct qat_alg_session_ctx *ctx,
                break;
        default:
                goto bad_key;
-               break;
        }
 
        if (qat_alg_init_enc_session(ctx, alg, &keys))