seccomp: Remove unnecessary ‘NULL’ values from prepared
Commit Message
prepared is assigned first, so it does not need to initialize the
assignment.
Signed-off-by: Li zeming <zeming@nfschina.com>
---
kernel/seccomp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -1838,7 +1838,7 @@ static long seccomp_set_mode_filter(unsigned int flags,
const char __user *filter)
{
const unsigned long seccomp_mode = SECCOMP_MODE_FILTER;
- struct seccomp_filter *prepared = NULL;
+ struct seccomp_filter *prepared;
long ret = -EINVAL;
int listener = -1;
struct file *listener_f = NULL;