summaryrefslogtreecommitdiff
path: root/kernel/power
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2014-11-16 14:18:28 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-11-18 02:49:40 +0100
commit6c45de0d51a3d93267ee100bff8c4632b1d49e8f (patch)
tree89f3a074dc540b19dd936e6880bed0ae93f04370 /kernel/power
parentc68cfdc0a5879b4397dcfa837ba81a06039c2943 (diff)
downloadlwn-6c45de0d51a3d93267ee100bff8c4632b1d49e8f.tar.gz
lwn-6c45de0d51a3d93267ee100bff8c4632b1d49e8f.zip
PM / hibernate: Deletion of an unnecessary check before the function call "vfree"
The vfree() function performs also input parameter validation. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'kernel/power')
-rw-r--r--kernel/power/swap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/power/swap.c b/kernel/power/swap.c
index 2c9d6d50a816..570aff817543 100644
--- a/kernel/power/swap.c
+++ b/kernel/power/swap.c
@@ -1375,7 +1375,7 @@ out_clean:
kthread_stop(data[thr].thr);
vfree(data);
}
- if (page) vfree(page);
+ vfree(page);
return ret;
}