OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13d2b4d
)
xen: remove redundant NULL check before unregister_and_remove_pcpu().
author
Cyril Roelandt
<tipecaml@gmail.com>
Tue, 12 Feb 2013 04:01:53 +0000
(
05:01
+0100)
committer
Konrad Rzeszutek Wilk
<konrad.wilk@oracle.com>
Wed, 13 Feb 2013 20:40:33 +0000
(15:40 -0500)
unregister_and_remove_pcpu on a NULL pointer is a no-op, so the NULL check in
sync_pcpu can be removed.
Signed-off-by: Cyril Roelandt <tipecaml@gmail.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/pcpu.c
patch
|
blob
|
history
diff --git
a/drivers/xen/pcpu.c
b/drivers/xen/pcpu.c
index
067fcfa
..
5a27a45
100644
(file)
--- a/
drivers/xen/pcpu.c
+++ b/
drivers/xen/pcpu.c
@@
-278,8
+278,7
@@
static int sync_pcpu(uint32_t cpu, uint32_t *max_cpu)
* Only those at cpu present map has its sys interface.
*/
if (info->flags & XEN_PCPU_FLAGS_INVALID) {
- if (pcpu)
- unregister_and_remove_pcpu(pcpu);
+ unregister_and_remove_pcpu(pcpu);
return 0;
}