summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Hecht <uli+cip@fpond.eu>2022-12-02 05:42:53 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-12-08 11:15:42 +0100
commitb1ccb4e09c04c661c681284b9e1dc7fdf3061d53 (patch)
treef9c19f13027f011470b74fe0bfa62117b65ae012
parentd2c9e2ebafa14a564b28e237db8d90ab7bdbd061 (diff)
downloadlinux-b1ccb4e09c04c661c681284b9e1dc7fdf3061d53.tar.gz
linux-b1ccb4e09c04c661c681284b9e1dc7fdf3061d53.tar.bz2
linux-b1ccb4e09c04c661c681284b9e1dc7fdf3061d53.zip
Revert "fbdev: fb_pm2fb: Avoid potential divide by zero error"
This reverts commit 6577e903a9e193ad70f2db92eba57c4f335afd1a. It's a duplicate of a commit that is already in this tree (0f1174f4972ea9fad6becf8881d71adca8e9ca91). Signed-off-by: Ulrich Hecht <uli+cip@fpond.eu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/video/fbdev/pm2fb.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/video/fbdev/pm2fb.c b/drivers/video/fbdev/pm2fb.c
index 50b569d047b1..9b32b9fc44a5 100644
--- a/drivers/video/fbdev/pm2fb.c
+++ b/drivers/video/fbdev/pm2fb.c
@@ -619,11 +619,6 @@ static int pm2fb_check_var(struct fb_var_screeninfo *var, struct fb_info *info)
return -EINVAL;
}
- if (!var->pixclock) {
- DPRINTK("pixclock is zero\n");
- return -EINVAL;
- }
-
if (PICOS2KHZ(var->pixclock) > PM2_MAX_PIXCLOCK) {
DPRINTK("pixclock too high (%ldKHz)\n",
PICOS2KHZ(var->pixclock));