cpu: clean up register_cpu func

This patch could reduce one branch in this function. Also
make the code more readble.

Signed-off-by: Alex Shi <[email protected]>
Acked-by: Daniel Lezcano <[email protected]>
To: [email protected]
To: Greg Kroah-Hartman <[email protected]>
Cc: [email protected]
Cc: Ulf Hansson <[email protected]>
Cc: Daniel Lezcano <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 file changed