diff options
| author | Benjamin Romer <benjamin.romer@unisys.com> | 2015-03-16 20:58:27 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-03-23 23:53:53 +0300 |
| commit | 597c338f0a6012e1360b7c71797b03438ff48fab (patch) | |
| tree | 9cdc3b5adf4d356e4c51364312e73f03d8eeaad6 | |
| parent | f118a39bfec6eff3ab1c1720fd734df62e012150 (diff) | |
| download | linux-597c338f0a6012e1360b7c71797b03438ff48fab.tar.xz | |
staging: unisys: fix NULL comparison in destroy_controlvm_payload_info()
Just remove the NULL from the check and test the pointer directly.
Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| -rw-r--r-- | drivers/staging/unisys/visorchipset/visorchipset_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/unisys/visorchipset/visorchipset_main.c b/drivers/staging/unisys/visorchipset/visorchipset_main.c index 7956ae71e823..0f791fb0728f 100644 --- a/drivers/staging/unisys/visorchipset/visorchipset_main.c +++ b/drivers/staging/unisys/visorchipset/visorchipset_main.c @@ -1299,7 +1299,7 @@ cleanup: static void destroy_controlvm_payload_info(struct controlvm_payload_info *info) { - if (info->ptr != NULL) { + if (info->ptr) { iounmap(info->ptr); info->ptr = NULL; } |
