Commit c5dbf04
platform/x86: hp-bioscfg: Simplify return check in hp_add_other_attributes()
All cases in switch-case have a same goto on error, move the return
check out of the switch. This is a cleanup.
Signed-off-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20231113200742.3593548-1-harshit.m.mogalapalli@oracle.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>1 parent 7a3c36e commit c5dbf04
1 file changed
Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
630 | 630 | | |
631 | 631 | | |
632 | 632 | | |
633 | | - | |
634 | | - | |
635 | 633 | | |
636 | 634 | | |
637 | 635 | | |
638 | 636 | | |
639 | | - | |
640 | | - | |
641 | 637 | | |
642 | 638 | | |
643 | 639 | | |
644 | 640 | | |
645 | | - | |
646 | 641 | | |
647 | 642 | | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
648 | 646 | | |
649 | 647 | | |
650 | 648 | | |
| |||
0 commit comments