summaryrefslogtreecommitdiff
path: root/lib/cmpdi2.c
diff options
context:
space:
mode:
authorJinjie Ruan <ruanjinjie@huawei.com>2024-04-17 16:53:56 +0800
committerThomas Gleixner <tglx@linutronix.de>2024-04-23 00:17:07 +0200
commitbb58c1baa501e3d695d8e13a5bd955fd00e2e879 (patch)
treedb1ab18032bb6d73a20c3e3eb35c37ce32f86fde /lib/cmpdi2.c
parent35d77eb7b974f62aaef5a0dc72d93ddb1ada4074 (diff)
genirq: Simplify the checks for irq_set_percpu_devid_partition()
Since whether desc is NULL or desc->percpu_enabled is true, it returns -EINVAL, check them together, and assign desc->percpu_affinity using a ternary to simplify the code. Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/r/20240417085356.3785381-1-ruanjinjie@huawei.com
Diffstat (limited to 'lib/cmpdi2.c')
0 files changed, 0 insertions, 0 deletions