crypto: hisilicon/hpre - add 'default' for switch statement
Return error immediately if it goto 'default' path. Signed-off-by: Hui Tang <tanghui20@huawei.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
0c176d8d7d
commit
302e909cb2
|
@ -623,10 +623,10 @@ static int hpre_is_dh_params_length_valid(unsigned int key_sz)
|
|||
case _HPRE_DH_GRP15:
|
||||
case _HPRE_DH_GRP16:
|
||||
return 0;
|
||||
}
|
||||
|
||||
default:
|
||||
return -EINVAL;
|
||||
}
|
||||
}
|
||||
|
||||
static int hpre_dh_set_params(struct hpre_ctx *ctx, struct dh *params)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue