Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

irqchip/riscv-aplic: Simplify the to_of_node() code #1099

Closed
wants to merge 1 commit into from

Conversation

bjoto
Copy link

@bjoto bjoto commented Jun 5, 2024

Pull request for series with
subject: irqchip/riscv-aplic: Simplify the to_of_node() code
version: 2
url: https://patchwork.kernel.org/project/linux-riscv/list/?series=858296

@bjoto
Copy link
Author

bjoto commented Jun 5, 2024

Upstream branch: 1613e60
series: https://patchwork.kernel.org/project/linux-riscv/list/?series=858296
version: 2

The to_of_node() has is_of_node() check, so there is no need to repeat the
is_of_node() and to_of_node(). And if is_of_node() returns false, the
to_of_node() will return NULL, the of_property_present() will return false,
so remove the redundant check.

Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Signed-off-by: Björn Töpel <bjorn@rivosinc.com>
@bjoto
Copy link
Author

bjoto commented Jun 5, 2024

Upstream branch: 6d8e604
series: https://patchwork.kernel.org/project/linux-riscv/list/?series=858296
version: 2

@bjoto
Copy link
Author

bjoto commented Jun 5, 2024

At least one diff in series https://patchwork.kernel.org/project/linux-riscv/list/?series=858296 irrelevant now. Closing PR.

@bjoto bjoto closed this Jun 5, 2024
@bjoto bjoto deleted the series/858296=>for-next branch June 5, 2024 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant