Remove the null checks for tfm, src, slen, dst, dlen; tfm will never
be null and the other fields are always expected to be set correctly.
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Dan Streetman <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
bool add_header;
u16 ignore = 0;
- if (!tfm || !src || !slen || !dst || !dlen)
- return -EINVAL;
-
p.in = (u8 *)src;
p.iremain = slen;
p.out = dst;
u16 ignore = 0;
bool usehw = true;
- if (!tfm || !src || !slen || !dst || !dlen)
- return -EINVAL;
-
p.in = (u8 *)src;
p.iremain = slen;
p.out = dst;