All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <201108151934.05710.linux@rainbow-software.org>

diff --git a/a/1.txt b/N1/1.txt
index 8c5ae3b..42eb699 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -521,7 +521,7 @@ no signed-off-by yet
 +	vslen = var->vsync_len;
 +	upper = var->upper_margin;
 +
-+	if (vxres * vyres * ((bpp + 1) / 8) > info->screen_size || vyres = yres) {
++	if (vxres * vyres * ((bpp + 1) / 8) > info->screen_size || vyres == yres) {
 +		vyres = info->screen_size / vxres / ((bpp + 1) / 8);
 +		if (vyres < yres)
 +			return -ENOMEM;
@@ -888,7 +888,7 @@ no signed-off-by yet
 +	vga_unprotect(par);
 +
 +	info->fix.line_length = info->var.xres_virtual * info->var.bits_per_pixel / 8;
-+	if (info->var.bits_per_pixel = 8)
++	if (info->var.bits_per_pixel == 8)
 +		info->fix.visual = FB_VISUAL_PSEUDOCOLOR;
 +	else
 +		info->fix.visual = FB_VISUAL_TRUECOLOR;
@@ -1013,7 +1013,7 @@ no signed-off-by yet
 +	i740outreg(par, XRX, DPMS_SYNC_SELECT, DPMSSyncSelect);
 +
 +	/* Let fbcon do a soft blank for us */
-+	return (blank_mode = FB_BLANK_NORMAL) ? 1 : 0;
++	return (blank_mode == FB_BLANK_NORMAL) ? 1 : 0;
 +}
 +
 +static struct fb_ops i740fb_ops = {
@@ -1081,7 +1081,7 @@ no signed-off-by yet
 +	}
 +
 +	/* detect memory size */
-+	if ((i740inreg(par, XRX, DRAM_ROW_TYPE) & DRAM_ROW_1) = DRAM_ROW_1_SDRAM)
++	if ((i740inreg(par, XRX, DRAM_ROW_TYPE) & DRAM_ROW_1) == DRAM_ROW_1_SDRAM)
 +		i740outb(par, XRX, DRAM_ROW_BNDRY_1);
 +	else
 +		i740outb(par, XRX, DRAM_ROW_BNDRY_0);
@@ -1102,7 +1102,7 @@ no signed-off-by yet
 +	info->fix.smem_len = info->screen_size;
 +	info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN;
 +
-+	if (i740fb_setup_ddc_bus(info) = 0) {
++	if (i740fb_setup_ddc_bus(info) == 0) {
 +		par->ddc_registered = true;
 +		edid = fb_ddc_read(&par->ddc_adapter);
 +		if (edid) {
@@ -1120,7 +1120,7 @@ no signed-off-by yet
 +				if (m) {
 +					fb_videomode_to_var(&info->var, m);
 +					/* fill all other info->var's fields */
-+					if (i740fb_check_var(&info->var, info) = 0)
++					if (i740fb_check_var(&info->var, info) == 0)
 +						found = true;
 +				}
 +			}
@@ -1134,7 +1134,7 @@ no signed-off-by yet
 +		ret = fb_find_mode(&info->var, info, mode_option,
 +				   info->monspecs.modedb, info->monspecs.modedb_len,
 +				   NULL, info->var.bits_per_pixel);
-+		if (!ret || ret = 4) {
++		if (!ret || ret == 4) {
 +			dev_err(info->device, "mode %s not found\n", mode_option);
 +			ret = -EINVAL;
 +		}
@@ -1143,7 +1143,7 @@ no signed-off-by yet
 +	fb_destroy_modedb(info->monspecs.modedb);
 +	info->monspecs.modedb = NULL;
 +
-+	if (ret = -EINVAL)
++	if (ret == -EINVAL)
 +		goto err_find_mode;
 +
 +	ret = fb_alloc_cmap(&info->cmap, 256, 0);
diff --git a/a/content_digest b/N1/content_digest
index 8cd4044..9d270f8 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -1,6 +1,6 @@
  "From\0Ondrej Zary <linux@rainbow-software.org>\0"
  "Subject\0[RFC PATCH] Resurrect Intel740 driver: i740fb\0"
- "Date\0Mon, 15 Aug 2011 17:34:01 +0000\0"
+ "Date\0Mon, 15 Aug 2011 19:34:01 +0200\0"
  "To\0linux-fbdev@vger.kernel.org\0"
  "Cc\0Kernel development list <linux-kernel@vger.kernel.org>"
  " Paul Mundt <lethal@linux-sh.org>\0"
@@ -529,7 +529,7 @@
  "+\tvslen = var->vsync_len;\n"
  "+\tupper = var->upper_margin;\n"
  "+\n"
- "+\tif (vxres * vyres * ((bpp + 1) / 8) > info->screen_size || vyres = yres) {\n"
+ "+\tif (vxres * vyres * ((bpp + 1) / 8) > info->screen_size || vyres == yres) {\n"
  "+\t\tvyres = info->screen_size / vxres / ((bpp + 1) / 8);\n"
  "+\t\tif (vyres < yres)\n"
  "+\t\t\treturn -ENOMEM;\n"
@@ -896,7 +896,7 @@
  "+\tvga_unprotect(par);\n"
  "+\n"
  "+\tinfo->fix.line_length = info->var.xres_virtual * info->var.bits_per_pixel / 8;\n"
- "+\tif (info->var.bits_per_pixel = 8)\n"
+ "+\tif (info->var.bits_per_pixel == 8)\n"
  "+\t\tinfo->fix.visual = FB_VISUAL_PSEUDOCOLOR;\n"
  "+\telse\n"
  "+\t\tinfo->fix.visual = FB_VISUAL_TRUECOLOR;\n"
@@ -1021,7 +1021,7 @@
  "+\ti740outreg(par, XRX, DPMS_SYNC_SELECT, DPMSSyncSelect);\n"
  "+\n"
  "+\t/* Let fbcon do a soft blank for us */\n"
- "+\treturn (blank_mode = FB_BLANK_NORMAL) ? 1 : 0;\n"
+ "+\treturn (blank_mode == FB_BLANK_NORMAL) ? 1 : 0;\n"
  "+}\n"
  "+\n"
  "+static struct fb_ops i740fb_ops = {\n"
@@ -1089,7 +1089,7 @@
  "+\t}\n"
  "+\n"
  "+\t/* detect memory size */\n"
- "+\tif ((i740inreg(par, XRX, DRAM_ROW_TYPE) & DRAM_ROW_1) = DRAM_ROW_1_SDRAM)\n"
+ "+\tif ((i740inreg(par, XRX, DRAM_ROW_TYPE) & DRAM_ROW_1) == DRAM_ROW_1_SDRAM)\n"
  "+\t\ti740outb(par, XRX, DRAM_ROW_BNDRY_1);\n"
  "+\telse\n"
  "+\t\ti740outb(par, XRX, DRAM_ROW_BNDRY_0);\n"
@@ -1110,7 +1110,7 @@
  "+\tinfo->fix.smem_len = info->screen_size;\n"
  "+\tinfo->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN;\n"
  "+\n"
- "+\tif (i740fb_setup_ddc_bus(info) = 0) {\n"
+ "+\tif (i740fb_setup_ddc_bus(info) == 0) {\n"
  "+\t\tpar->ddc_registered = true;\n"
  "+\t\tedid = fb_ddc_read(&par->ddc_adapter);\n"
  "+\t\tif (edid) {\n"
@@ -1128,7 +1128,7 @@
  "+\t\t\t\tif (m) {\n"
  "+\t\t\t\t\tfb_videomode_to_var(&info->var, m);\n"
  "+\t\t\t\t\t/* fill all other info->var's fields */\n"
- "+\t\t\t\t\tif (i740fb_check_var(&info->var, info) = 0)\n"
+ "+\t\t\t\t\tif (i740fb_check_var(&info->var, info) == 0)\n"
  "+\t\t\t\t\t\tfound = true;\n"
  "+\t\t\t\t}\n"
  "+\t\t\t}\n"
@@ -1142,7 +1142,7 @@
  "+\t\tret = fb_find_mode(&info->var, info, mode_option,\n"
  "+\t\t\t\t   info->monspecs.modedb, info->monspecs.modedb_len,\n"
  "+\t\t\t\t   NULL, info->var.bits_per_pixel);\n"
- "+\t\tif (!ret || ret = 4) {\n"
+ "+\t\tif (!ret || ret == 4) {\n"
  "+\t\t\tdev_err(info->device, \"mode %s not found\\n\", mode_option);\n"
  "+\t\t\tret = -EINVAL;\n"
  "+\t\t}\n"
@@ -1151,7 +1151,7 @@
  "+\tfb_destroy_modedb(info->monspecs.modedb);\n"
  "+\tinfo->monspecs.modedb = NULL;\n"
  "+\n"
- "+\tif (ret = -EINVAL)\n"
+ "+\tif (ret == -EINVAL)\n"
  "+\t\tgoto err_find_mode;\n"
  "+\n"
  "+\tret = fb_alloc_cmap(&info->cmap, 256, 0);\n"
@@ -1628,4 +1628,4 @@
  "-- \n"
  Ondrej Zary
 
-b099f9370c72a81fa2134010aab7e1df4333e5762782997dbfcb03f5466ee1eb
+3a874776268992a2bb5f7ddc71db22494668970bf06b04631152f9ef83532954

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.