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

Commit 095b7c9a authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "fbcmap: Remove unnecessary condition check"

parents 5becdbcc f05e9e0f
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;
	}