]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
staging: sm750fb: use early returns in frequency checks
authorAhmet Sezgin Duran <ahmet@sezginduran.net>
Tue, 12 May 2026 16:41:22 +0000 (16:41 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 21 May 2026 10:37:22 +0000 (12:37 +0200)
commit145a22aab14661de14f14f514b9f796e084a711a
tree7ae57af5c21fae4d2b4d8f5d68ccf0bc62bd3574
parentee681e7b6a269cd400969fbd3b2d85291a602528
staging: sm750fb: use early returns in frequency checks

Invert the frequency validation conditions and use early returns
to reduce nesting and improve readability.

No functional changes.

Signed-off-by: Ahmet Sezgin Duran <ahmet@sezginduran.net>
Link: https://patch.msgid.link/20260512164124.188210-3-ahmet@sezginduran.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm750fb/ddk750_chip.c