video: fbdev: simplefb: Check before clk_put() not needed
authorYihao Han <hanyihao@vivo.com>
Thu, 2 Jun 2022 09:42:18 +0000 (02:42 -0700)
committerHelge Deller <deller@gmx.de>
Mon, 20 Jun 2022 18:22:16 +0000 (20:22 +0200)
commit5491424d17bdeb7b7852a59367858251783f8398
tree656041ae0addf9c97a1e86c1a3599d242c3bbebf
parentb5c525abe717f2f41684b8581c13347d50d5285a
video: fbdev: simplefb: Check before clk_put() not needed

clk_put() already checks the clk ptr using !clk and IS_ERR()
so there is no need to check it again before calling it.

Signed-off-by: Yihao Han <hanyihao@vivo.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/simplefb.c