kernel/aio-stress.c: rempve explicit NULL check before free
PATCH 7/8 kernel/aio-stress.c: rempve explicit NULL check before free
No need of NULL check before free
Signed-off-by Maninder Singh <[email protected]>
Signed-off-by Akhilesh Kumar <[email protected]>
--- testcases/kernel/io/ltp-aiodio/aio-stress.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)
testcases/kernel/io/ltp-aiodio/aio-stress.c +3 -6
@@ -991,12 +991,9 @@ int setup_ious(struct thread_info *t,return 0 ; free_buffers: -if (t->ios) -free (t->ios); -if (t->iocbs) -free (t->iocbs); -if (t->events) -free (t->events); +free (t->ios); +free (t->iocbs); +free (t->events);return -1 ; }
Signature · 6 lines
1.7.9.5 ------------------------------------------------------------------------------ _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list