Commit b5c525a
video: fbdev: au1100fb: Drop unnecessary NULL ptr check
clk_disable() already checks the clk ptr using IS_ERR_OR_NULL(clk) and
clk_enable() checks the clk ptr using !clk, so there is no need to check clk
ptr again before calling them.
Signed-off-by: Yihao Han <[email protected]>
Signed-off-by: Helge Deller <[email protected]>1 parent a09d2d0 commit b5c525a
1 file changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
560 | 560 | | |
561 | 561 | | |
562 | 562 | | |
563 | | - | |
564 | | - | |
| 563 | + | |
565 | 564 | | |
566 | 565 | | |
567 | 566 | | |
| |||
577 | 576 | | |
578 | 577 | | |
579 | 578 | | |
580 | | - | |
581 | | - | |
| 579 | + | |
582 | 580 | | |
583 | 581 | | |
584 | 582 | | |
| |||
0 commit comments