diff options
| author | Gavin Shan <gshan@redhat.com> | 2020-09-22 16:04:14 +0300 |
|---|---|---|
| committer | Will Deacon <will@kernel.org> | 2020-09-28 23:52:22 +0300 |
| commit | 10fd7c42b7953b3316806388493bff22abd3f78c (patch) | |
| tree | c9a73a075deb4bc8fa559e373cb1ecccde086c81 /drivers/fpga/ts73xx-fpga.c | |
| parent | 663c0e89c8defd75a9d34ae31dbc315d6cf894bd (diff) | |
| download | linux-10fd7c42b7953b3316806388493bff22abd3f78c.tar.xz | |
firmware: arm_sdei: Avoid nested statements in sdei_init()
In sdei_init(), the nested statements can be avoided by bailing
on error from platform_driver_register() or absent ACPI SDEI table.
With it, the code looks a bit more readable.
Signed-off-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: James Morse <james.morse@arm.com>
Link: https://lore.kernel.org/r/20200922130423.10173-5-gshan@redhat.com
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'drivers/fpga/ts73xx-fpga.c')
0 files changed, 0 insertions, 0 deletions
