Commit bb58c1b
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.com1 parent 35d77eb commit bb58c1b
1 file changed
Lines changed: 2 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
911 | 911 | | |
912 | 912 | | |
913 | 913 | | |
914 | | - | |
915 | | - | |
916 | | - | |
917 | | - | |
| 914 | + | |
918 | 915 | | |
919 | 916 | | |
920 | 917 | | |
921 | 918 | | |
922 | 919 | | |
923 | 920 | | |
924 | 921 | | |
925 | | - | |
926 | | - | |
927 | | - | |
928 | | - | |
| 922 | + | |
929 | 923 | | |
930 | 924 | | |
931 | 925 | | |
| |||
0 commit comments