Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f05e9e0f authored by Ping Li's avatar Ping Li Committed by Gerrit - the friendly Code Review server
Browse files

fbcmap: Remove unnecessary condition check



In fb_set_user_cmap function, cmap->start variable is an unsigned
integer, it doesn't need a condition check with the sign.

Change-Id: I355ddb7edcc085ee52e4054833b687640376eee3
Signed-off-by: default avatarPing Li <pingli@codeaurora.org>
parent f265ab81
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -299,8 +299,8 @@ int fb_set_user_cmap(struct fb_cmap_user *cmap, struct fb_info *info)
		rc = -ENODEV;
		goto out;
	}
	if (cmap->start < 0 || (!info->fbops->fb_setcolreg &&
				!info->fbops->fb_setcmap)) {
	if (!info->fbops->fb_setcolreg &&
				!info->fbops->fb_setcmap) {
		rc = -EINVAL;
		goto out1;
	}