diff --git a/scst/src/dev_handlers/scst_vdisk_main.c b/scst/src/dev_handlers/scst_vdisk_main.c index e22b93b3d..b76627118 100644 --- a/scst/src/dev_handlers/scst_vdisk_main.c +++ b/scst/src/dev_handlers/scst_vdisk_main.c @@ -2929,8 +2929,7 @@ static enum compl_status_e vdev_verify(struct scst_cmd *cmd, loff_t loff) } out_free: - if (mem_verify) - vfree(mem_verify); + vfree(mem_verify); out: TRACE_EXIT(); diff --git a/scst/src/scst_lib.c b/scst/src/scst_lib.c index a38442c27..359cff2bb 100644 --- a/scst/src/scst_lib.c +++ b/scst/src/scst_lib.c @@ -15439,8 +15439,7 @@ out_close: filp_close(file_src, NULL); out_free: - if (buf != NULL) - vfree(buf); + vfree(buf); out: TRACE_EXIT_RES(res);