summaryrefslogtreecommitdiff
path: root/lib/ucs2_string.c
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2017-04-24 20:46:59 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2017-05-03 14:45:38 +1000
commit3f2290e1b5192fdfa74f012220a8d90067beb076 (patch)
treed789e4a7958fcde2c25d55d7e436452f461bcc8f /lib/ucs2_string.c
parent687b8f24f14db842c8c3f8cb8b24c9a29b691db8 (diff)
powerpc/sysfs: Move #ifdef CONFIG_HOTPLUG_CPU out of the function body
The entire body of unregister_cpu_online() is inside an #ifdef CONFIG_HOTPLUG_CPU block. This is ugly and means we create an empty function when hotplug is disabled for no reason. Instead move the #ifdef out of the function body and define the function to be NULL in the else case. This means we'll pass NULL to cpuhp_setup_state(), but that's fine because it accepts NULL to mean there is no teardown callback, which is exactly what we want. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'lib/ucs2_string.c')
0 files changed, 0 insertions, 0 deletions