All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <1972083.WZLDx2N35Z@mayhem>

diff --git a/a/1.txt b/N1/1.txt
index 341293e..fdb5631 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -48,7 +48,7 @@ index 765fce8..1322437 100644
  		return NOTIFY_DONE;
 @@ -178,6 +178,7 @@ static int bp_device_event(struct notifier_block *unused,
  	}
- 	if (event = NETDEV_UNREGISTER) {
+ 	if (event == NETDEV_UNREGISTER) {
  		int idx_dev = 0;
 +
  		for (idx_dev = 0;
@@ -56,7 +56,7 @@ index 765fce8..1322437 100644
  		      && (idx_dev < device_num)); idx_dev++) {
 @@ -195,6 +196,7 @@ static int bp_device_event(struct notifier_block *unused,
  	}
- 	if (event = NETDEV_CHANGENAME) {
+ 	if (event == NETDEV_CHANGENAME) {
  		int idx_dev = 0;
 +
  		for (idx_dev = 0;
@@ -65,13 +65,13 @@ index 765fce8..1322437 100644
 @@ -235,18 +237,17 @@ static int bp_device_event(struct notifier_block *unused,
  				return NOTIFY_DONE;
  			ret = bypass_status(pbpctl_dev_m);
- 			if (ret = 1)
+ 			if (ret == 1)
 -				printk("bpmod: %s is in the Bypass mode now",
 -				       dev->name);
 +				pr_debug("bpmod: %s is in the Bypass mode now",
 +					 dev->name);
  			ret_d = disc_status(pbpctl_dev_m);
- 			if (ret_d = 1)
+ 			if (ret_d == 1)
 -				printk
 -				    ("bpmod: %s is in the Disconnect mode now",
 -				     dev->name);
@@ -79,7 +79,7 @@ index 765fce8..1322437 100644
 +					 dev->name);
  			if (ret || ret_d) {
  				wdt_timer(pbpctl_dev_m, &time_left);
- 				if (time_left = -1)
+ 				if (time_left == -1)
 -					printk("; WDT has expired");
 -				printk(".\n");
 +					pr_debug("; WDT has expired");
@@ -866,8 +866,8 @@ index 765fce8..1322437 100644
  				(ctrl_ext &
  				 ~(BP10G_MCLK_DATA_OUT | BP10G_MDIO_DATA_OUT)));
  	}
--	if ((pbpctl_dev->wdt_status = WDT_STATUS_EN))
-+	if (pbpctl_dev->wdt_status = WDT_STATUS_EN)
+-	if ((pbpctl_dev->wdt_status == WDT_STATUS_EN))
++	if (pbpctl_dev->wdt_status == WDT_STATUS_EN)
  		/*&& (pbpctl_dev->bp_ext_ver<PXG4BPFI_VER) */
  		pbpctl_dev->bypass_wdt_on_time = jiffies;
  #ifdef BP_SYNC_FLAG
@@ -934,7 +934,7 @@ index 765fce8..1322437 100644
 +			    ~(BPCTLI_CTRL_EXT_SDP6_DATA |
 +			      BPCTLI_CTRL_EXT_SDP7_DATA)));
  	usec_delay(WDT_TIME_CNT);
- 	if (pbpctl_dev->wdt_status = WDT_STATUS_EN)
+ 	if (pbpctl_dev->wdt_status == WDT_STATUS_EN)
  		pbpctl_dev->bypass_wdt_on_time = jiffies;
 @@ -1570,19 +1518,15 @@ int zero_set_fn(struct bpctl_dev *pbpctl_dev)
  		return -1;
@@ -1020,7 +1020,7 @@ index 765fce8..1322437 100644
 @@ -2058,8 +2005,7 @@ static s32 bp75_get_hw_semaphore_generic(struct bpctl_dev *pbpctl_dev)
  	}
  
- 	if (i = timeout) {
+ 	if (i == timeout) {
 -		printk
 -		    ("bpctl_mod: Driver can't access device - SMBI bit is set.\n");
 +		pr_debug("bpctl_mod: Driver can't access device - SMBI bit is set.\n");
@@ -1028,7 +1028,7 @@ index 765fce8..1322437 100644
  		goto out;
  	}
 @@ -2079,7 +2025,7 @@ static s32 bp75_get_hw_semaphore_generic(struct bpctl_dev *pbpctl_dev)
- 	if (i = timeout) {
+ 	if (i == timeout) {
  		/* Release semaphores */
  		bp75_put_hw_semaphore_generic(pbpctl_dev);
 -		printk("bpctl_mod: Driver can't access the NVM\n");
@@ -1039,7 +1039,7 @@ index 765fce8..1322437 100644
 @@ -2139,8 +2085,7 @@ static s32 bp75_acquire_phy(struct bpctl_dev *pbpctl_dev)
  	}
  
- 	if (i = timeout) {
+ 	if (i == timeout) {
 -		printk
 -		    ("bpctl_mod: Driver can't access resource, SW_FW_SYNC timeout.\n");
 +		pr_debug("bpctl_mod: Driver can't access resource, SW_FW_SYNC timeout.\n");
@@ -1093,7 +1093,8 @@ index 765fce8..1322437 100644
 -		ret_val = bp75_write_phy_reg_mdic(pbpctl_dev,
 -						  BPCTLI_IGP01E1000_PHY_PAGE_SELECT,
 -						  (u16) offset);
-+		ret_val +		    bp75_write_phy_reg_mdic(pbpctl_dev,
++		ret_val =
++		    bp75_write_phy_reg_mdic(pbpctl_dev,
 +					    BPCTLI_IGP01E1000_PHY_PAGE_SELECT,
 +					    (u16) offset);
  		if (ret_val)
@@ -1116,7 +1117,8 @@ index 765fce8..1322437 100644
 -		ret_val = bp75_write_phy_reg_mdic(pbpctl_dev,
 -						  BPCTLI_IGP01E1000_PHY_PAGE_SELECT,
 -						  (u16) offset);
-+		ret_val +		    bp75_write_phy_reg_mdic(pbpctl_dev,
++		ret_val =
++		    bp75_write_phy_reg_mdic(pbpctl_dev,
 +					    BPCTLI_IGP01E1000_PHY_PAGE_SELECT,
 +					    (u16) offset);
  		if (ret_val)
@@ -1134,7 +1136,8 @@ index 765fce8..1322437 100644
 -					if (mii_reg & BPCTLI_MII_CR_POWER_DOWN) {
 +					if (mii_reg &
 +					    BPCTLI_MII_CR_POWER_DOWN) {
- 						ret  						    bp75_write_phy_reg
+ 						ret =
+ 						    bp75_write_phy_reg
  						    (pbpctl_dev,
 @@ -2335,6 +2286,7 @@ static int set_tx(struct bpctl_dev *pbpctl_dev, int tx_state)
  				}
@@ -1153,7 +1156,7 @@ index 765fce8..1322437 100644
 +						    BPCTLI_CTRL_EXT_SDP6_DATA));
  
  			} else if (pbpctl_dev->bp_10gb) {
- 				if ((bpctl_dev_arr->func = 1)
+ 				if ((bpctl_dev_arr->func == 1)
 @@ -2781,7 +2734,8 @@ static int std_nic_off(struct bpctl_dev *pbpctl_dev)
  int wdt_time_left(struct bpctl_dev *pbpctl_dev)
  {
@@ -1161,11 +1164,12 @@ index 765fce8..1322437 100644
 -	/* unsigned long curr_time=((long long)(jiffies*1000))/HZ, delta_time=0,wdt_on_time=((long long)(pbpctl_dev->bypass_wdt_on_time*1000))/HZ; */
 +	/* unsigned long curr_time=((long long)(jiffies*1000))/HZ, delta_time=0,
 +	 * wdt_on_time=((long long)(pbpctl_dev->bypass_wdt_on_time*1000))/HZ; */
- 	unsigned long curr_time = jiffies, delta_time = 0, wdt_on_time  	    pbpctl_dev->bypass_wdt_on_time, delta_time_msec = 0;
+ 	unsigned long curr_time = jiffies, delta_time = 0, wdt_on_time =
+ 	    pbpctl_dev->bypass_wdt_on_time, delta_time_msec = 0;
  	int time_left = 0;
 @@ -2865,7 +2819,8 @@ static void wd_reset_timer(unsigned long param)
  
- 	if (pbpctl_dev->bp_self_test_flag = 1) {
+ 	if (pbpctl_dev->bp_self_test_flag == 1) {
  		skb_tmp = dev_alloc_skb(BPTEST_DATA_LEN + 2);
 -		if ((skb_tmp) && (pbpctl_dev->ndev) && (pbpctl_dev->bp_tx_data)) {
 +		if ((skb_tmp) && (pbpctl_dev->ndev) &&
@@ -1201,7 +1205,7 @@ index 765fce8..1322437 100644
  		} else {
  			int curr_wdt_status = pbpctl_dev->wdt_status;
 +
- 			if (curr_wdt_status = WDT_STATUS_UNKNOWN)
+ 			if (curr_wdt_status == WDT_STATUS_UNKNOWN)
  				*timeout = -1;
  			else
 @@ -3767,21 +3726,21 @@ static void bypass_caps_init(struct bpctl_dev *pbpctl_dev)
@@ -1241,25 +1245,25 @@ index 765fce8..1322437 100644
 +
  		if (pbpctl_dev_m->bp_ext_ver >= 0x9) {
  			cap_reg = get_bp_prod_caps(pbpctl_dev_m);
- 			if ((cap_reg & DISC_PORT_SUPPORT_MASK) =
+ 			if ((cap_reg & DISC_PORT_SUPPORT_MASK) ==
 @@ -4033,7 +3993,7 @@ int bp_hard_start_xmit(struct sk_buff *skb, struct net_device *dev)
  	}
  	if (!pbpctl_dev)
  		return 1;
--	if ((htons(ETH_P_BPTEST) = eth->h_proto)) {
-+	if (htons(ETH_P_BPTEST) = eth->h_proto) {
+-	if ((htons(ETH_P_BPTEST) == eth->h_proto)) {
++	if (htons(ETH_P_BPTEST) == eth->h_proto) {
  
  		pbpctl_dev_m = get_master_port_fn(pbpctl_dev);
  		if (pbpctl_dev_m) {
 @@ -4089,7 +4049,8 @@ int set_bp_self_test(struct bpctl_dev *pbpctl_dev, unsigned int param)
- 		pbpctl_dev->bp_self_test_flag = param = 0 ? 0 : 1;
+ 		pbpctl_dev->bp_self_test_flag = param == 0 ? 0 : 1;
  		pbpctl_dev_sl = get_status_port_fn(pbpctl_dev);
  
 -		if ((pbpctl_dev_sl->ndev) && (pbpctl_dev_sl->ndev->netdev_ops)) {
 +		if ((pbpctl_dev_sl->ndev) &&
 +		    (pbpctl_dev_sl->ndev->netdev_ops)) {
  			rtnl_lock();
- 			if (pbpctl_dev->bp_self_test_flag = 1) {
+ 			if (pbpctl_dev->bp_self_test_flag == 1) {
  
 @@ -4428,7 +4389,8 @@ static int set_dis_tap_fn(struct bpctl_dev *pbpctl_dev, int dis_param)
  	if (!pbpctl_dev)
@@ -1339,7 +1343,7 @@ index 765fce8..1322437 100644
  	 SILICOM_PEG4BPI6_SSID /*PCI_ANY_ID */ , PEG4BPI6, "PEG4BPI6"},
 @@ -6250,6 +6213,7 @@ static void find_fw(struct bpctl_dev *dev)
  
- 	if (dev->bp_10gb = 1 && dev->bp_fw_ver = 0xff) {
+ 	if (dev->bp_10gb == 1 && dev->bp_fw_ver == 0xff) {
  		int cnt = 100;
 +
  		while (cnt--) {
@@ -1361,7 +1365,7 @@ index 765fce8..1322437 100644
  
 @@ -6305,15 +6270,15 @@ static int init_one(struct bpctl_dev *dev, struct bpmod_info *info, struct pci_d
  	if (BP10GB_IF_SERIES(dev->subdevice)) {
- 		if (dev->ifindex = 0) {
+ 		if (dev->ifindex == 0) {
  			unregister_chrdev(major_num, DEVICE_NAME);
 -			printk("Please load network driver for %s adapter!\n",
 -			     dev->name);
diff --git a/a/content_digest b/N1/content_digest
index 805534b..b655b91 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -1,6 +1,6 @@
  "From\0Davide Gianforte <davide@gengisdave.org>\0"
  "Subject\0[PATCH 1/2] staging: silicom: checkpatch fixes\0"
- "Date\0Tue, 01 Jul 2014 12:24:36 +0000\0"
+ "Date\0Tue, 01 Jul 2014 14:24:36 +0200\0"
  "To\0Greg Kroah-Hartman <gregkh@linuxfoundation.org>\0"
  "Cc\0devel@driverdev.osuosl.org <devel@driverdev.osuosl.org>"
   Linux Kernel <linux-kernel@vger.kernel.org>
@@ -57,7 +57,7 @@
  " \t\treturn NOTIFY_DONE;\n"
  "@@ -178,6 +178,7 @@ static int bp_device_event(struct notifier_block *unused,\n"
  " \t}\n"
- " \tif (event = NETDEV_UNREGISTER) {\n"
+ " \tif (event == NETDEV_UNREGISTER) {\n"
  " \t\tint idx_dev = 0;\n"
  "+\n"
  " \t\tfor (idx_dev = 0;\n"
@@ -65,7 +65,7 @@
  " \t\t      && (idx_dev < device_num)); idx_dev++) {\n"
  "@@ -195,6 +196,7 @@ static int bp_device_event(struct notifier_block *unused,\n"
  " \t}\n"
- " \tif (event = NETDEV_CHANGENAME) {\n"
+ " \tif (event == NETDEV_CHANGENAME) {\n"
  " \t\tint idx_dev = 0;\n"
  "+\n"
  " \t\tfor (idx_dev = 0;\n"
@@ -74,13 +74,13 @@
  "@@ -235,18 +237,17 @@ static int bp_device_event(struct notifier_block *unused,\n"
  " \t\t\t\treturn NOTIFY_DONE;\n"
  " \t\t\tret = bypass_status(pbpctl_dev_m);\n"
- " \t\t\tif (ret = 1)\n"
+ " \t\t\tif (ret == 1)\n"
  "-\t\t\t\tprintk(\"bpmod: %s is in the Bypass mode now\",\n"
  "-\t\t\t\t       dev->name);\n"
  "+\t\t\t\tpr_debug(\"bpmod: %s is in the Bypass mode now\",\n"
  "+\t\t\t\t\t dev->name);\n"
  " \t\t\tret_d = disc_status(pbpctl_dev_m);\n"
- " \t\t\tif (ret_d = 1)\n"
+ " \t\t\tif (ret_d == 1)\n"
  "-\t\t\t\tprintk\n"
  "-\t\t\t\t    (\"bpmod: %s is in the Disconnect mode now\",\n"
  "-\t\t\t\t     dev->name);\n"
@@ -88,7 +88,7 @@
  "+\t\t\t\t\t dev->name);\n"
  " \t\t\tif (ret || ret_d) {\n"
  " \t\t\t\twdt_timer(pbpctl_dev_m, &time_left);\n"
- " \t\t\t\tif (time_left = -1)\n"
+ " \t\t\t\tif (time_left == -1)\n"
  "-\t\t\t\t\tprintk(\"; WDT has expired\");\n"
  "-\t\t\t\tprintk(\".\\n\");\n"
  "+\t\t\t\t\tpr_debug(\"; WDT has expired\");\n"
@@ -875,8 +875,8 @@
  " \t\t\t\t(ctrl_ext &\n"
  " \t\t\t\t ~(BP10G_MCLK_DATA_OUT | BP10G_MDIO_DATA_OUT)));\n"
  " \t}\n"
- "-\tif ((pbpctl_dev->wdt_status = WDT_STATUS_EN))\n"
- "+\tif (pbpctl_dev->wdt_status = WDT_STATUS_EN)\n"
+ "-\tif ((pbpctl_dev->wdt_status == WDT_STATUS_EN))\n"
+ "+\tif (pbpctl_dev->wdt_status == WDT_STATUS_EN)\n"
  " \t\t/*&& (pbpctl_dev->bp_ext_ver<PXG4BPFI_VER) */\n"
  " \t\tpbpctl_dev->bypass_wdt_on_time = jiffies;\n"
  " #ifdef BP_SYNC_FLAG\n"
@@ -943,7 +943,7 @@
  "+\t\t\t    ~(BPCTLI_CTRL_EXT_SDP6_DATA |\n"
  "+\t\t\t      BPCTLI_CTRL_EXT_SDP7_DATA)));\n"
  " \tusec_delay(WDT_TIME_CNT);\n"
- " \tif (pbpctl_dev->wdt_status = WDT_STATUS_EN)\n"
+ " \tif (pbpctl_dev->wdt_status == WDT_STATUS_EN)\n"
  " \t\tpbpctl_dev->bypass_wdt_on_time = jiffies;\n"
  "@@ -1570,19 +1518,15 @@ int zero_set_fn(struct bpctl_dev *pbpctl_dev)\n"
  " \t\treturn -1;\n"
@@ -1029,7 +1029,7 @@
  "@@ -2058,8 +2005,7 @@ static s32 bp75_get_hw_semaphore_generic(struct bpctl_dev *pbpctl_dev)\n"
  " \t}\n"
  " \n"
- " \tif (i = timeout) {\n"
+ " \tif (i == timeout) {\n"
  "-\t\tprintk\n"
  "-\t\t    (\"bpctl_mod: Driver can't access device - SMBI bit is set.\\n\");\n"
  "+\t\tpr_debug(\"bpctl_mod: Driver can't access device - SMBI bit is set.\\n\");\n"
@@ -1037,7 +1037,7 @@
  " \t\tgoto out;\n"
  " \t}\n"
  "@@ -2079,7 +2025,7 @@ static s32 bp75_get_hw_semaphore_generic(struct bpctl_dev *pbpctl_dev)\n"
- " \tif (i = timeout) {\n"
+ " \tif (i == timeout) {\n"
  " \t\t/* Release semaphores */\n"
  " \t\tbp75_put_hw_semaphore_generic(pbpctl_dev);\n"
  "-\t\tprintk(\"bpctl_mod: Driver can't access the NVM\\n\");\n"
@@ -1048,7 +1048,7 @@
  "@@ -2139,8 +2085,7 @@ static s32 bp75_acquire_phy(struct bpctl_dev *pbpctl_dev)\n"
  " \t}\n"
  " \n"
- " \tif (i = timeout) {\n"
+ " \tif (i == timeout) {\n"
  "-\t\tprintk\n"
  "-\t\t    (\"bpctl_mod: Driver can't access resource, SW_FW_SYNC timeout.\\n\");\n"
  "+\t\tpr_debug(\"bpctl_mod: Driver can't access resource, SW_FW_SYNC timeout.\\n\");\n"
@@ -1102,7 +1102,8 @@
  "-\t\tret_val = bp75_write_phy_reg_mdic(pbpctl_dev,\n"
  "-\t\t\t\t\t\t  BPCTLI_IGP01E1000_PHY_PAGE_SELECT,\n"
  "-\t\t\t\t\t\t  (u16) offset);\n"
- "+\t\tret_val +\t\t    bp75_write_phy_reg_mdic(pbpctl_dev,\n"
+ "+\t\tret_val =\n"
+ "+\t\t    bp75_write_phy_reg_mdic(pbpctl_dev,\n"
  "+\t\t\t\t\t    BPCTLI_IGP01E1000_PHY_PAGE_SELECT,\n"
  "+\t\t\t\t\t    (u16) offset);\n"
  " \t\tif (ret_val)\n"
@@ -1125,7 +1126,8 @@
  "-\t\tret_val = bp75_write_phy_reg_mdic(pbpctl_dev,\n"
  "-\t\t\t\t\t\t  BPCTLI_IGP01E1000_PHY_PAGE_SELECT,\n"
  "-\t\t\t\t\t\t  (u16) offset);\n"
- "+\t\tret_val +\t\t    bp75_write_phy_reg_mdic(pbpctl_dev,\n"
+ "+\t\tret_val =\n"
+ "+\t\t    bp75_write_phy_reg_mdic(pbpctl_dev,\n"
  "+\t\t\t\t\t    BPCTLI_IGP01E1000_PHY_PAGE_SELECT,\n"
  "+\t\t\t\t\t    (u16) offset);\n"
  " \t\tif (ret_val)\n"
@@ -1143,7 +1145,8 @@
  "-\t\t\t\t\tif (mii_reg & BPCTLI_MII_CR_POWER_DOWN) {\n"
  "+\t\t\t\t\tif (mii_reg &\n"
  "+\t\t\t\t\t    BPCTLI_MII_CR_POWER_DOWN) {\n"
- " \t\t\t\t\t\tret  \t\t\t\t\t\t    bp75_write_phy_reg\n"
+ " \t\t\t\t\t\tret =\n"
+ " \t\t\t\t\t\t    bp75_write_phy_reg\n"
  " \t\t\t\t\t\t    (pbpctl_dev,\n"
  "@@ -2335,6 +2286,7 @@ static int set_tx(struct bpctl_dev *pbpctl_dev, int tx_state)\n"
  " \t\t\t\t}\n"
@@ -1162,7 +1165,7 @@
  "+\t\t\t\t\t\t    BPCTLI_CTRL_EXT_SDP6_DATA));\n"
  " \n"
  " \t\t\t} else if (pbpctl_dev->bp_10gb) {\n"
- " \t\t\t\tif ((bpctl_dev_arr->func = 1)\n"
+ " \t\t\t\tif ((bpctl_dev_arr->func == 1)\n"
  "@@ -2781,7 +2734,8 @@ static int std_nic_off(struct bpctl_dev *pbpctl_dev)\n"
  " int wdt_time_left(struct bpctl_dev *pbpctl_dev)\n"
  " {\n"
@@ -1170,11 +1173,12 @@
  "-\t/* unsigned long curr_time=((long long)(jiffies*1000))/HZ, delta_time=0,wdt_on_time=((long long)(pbpctl_dev->bypass_wdt_on_time*1000))/HZ; */\n"
  "+\t/* unsigned long curr_time=((long long)(jiffies*1000))/HZ, delta_time=0,\n"
  "+\t * wdt_on_time=((long long)(pbpctl_dev->bypass_wdt_on_time*1000))/HZ; */\n"
- " \tunsigned long curr_time = jiffies, delta_time = 0, wdt_on_time  \t    pbpctl_dev->bypass_wdt_on_time, delta_time_msec = 0;\n"
+ " \tunsigned long curr_time = jiffies, delta_time = 0, wdt_on_time =\n"
+ " \t    pbpctl_dev->bypass_wdt_on_time, delta_time_msec = 0;\n"
  " \tint time_left = 0;\n"
  "@@ -2865,7 +2819,8 @@ static void wd_reset_timer(unsigned long param)\n"
  " \n"
- " \tif (pbpctl_dev->bp_self_test_flag = 1) {\n"
+ " \tif (pbpctl_dev->bp_self_test_flag == 1) {\n"
  " \t\tskb_tmp = dev_alloc_skb(BPTEST_DATA_LEN + 2);\n"
  "-\t\tif ((skb_tmp) && (pbpctl_dev->ndev) && (pbpctl_dev->bp_tx_data)) {\n"
  "+\t\tif ((skb_tmp) && (pbpctl_dev->ndev) &&\n"
@@ -1210,7 +1214,7 @@
  " \t\t} else {\n"
  " \t\t\tint curr_wdt_status = pbpctl_dev->wdt_status;\n"
  "+\n"
- " \t\t\tif (curr_wdt_status = WDT_STATUS_UNKNOWN)\n"
+ " \t\t\tif (curr_wdt_status == WDT_STATUS_UNKNOWN)\n"
  " \t\t\t\t*timeout = -1;\n"
  " \t\t\telse\n"
  "@@ -3767,21 +3726,21 @@ static void bypass_caps_init(struct bpctl_dev *pbpctl_dev)\n"
@@ -1250,25 +1254,25 @@
  "+\n"
  " \t\tif (pbpctl_dev_m->bp_ext_ver >= 0x9) {\n"
  " \t\t\tcap_reg = get_bp_prod_caps(pbpctl_dev_m);\n"
- " \t\t\tif ((cap_reg & DISC_PORT_SUPPORT_MASK) =\n"
+ " \t\t\tif ((cap_reg & DISC_PORT_SUPPORT_MASK) ==\n"
  "@@ -4033,7 +3993,7 @@ int bp_hard_start_xmit(struct sk_buff *skb, struct net_device *dev)\n"
  " \t}\n"
  " \tif (!pbpctl_dev)\n"
  " \t\treturn 1;\n"
- "-\tif ((htons(ETH_P_BPTEST) = eth->h_proto)) {\n"
- "+\tif (htons(ETH_P_BPTEST) = eth->h_proto) {\n"
+ "-\tif ((htons(ETH_P_BPTEST) == eth->h_proto)) {\n"
+ "+\tif (htons(ETH_P_BPTEST) == eth->h_proto) {\n"
  " \n"
  " \t\tpbpctl_dev_m = get_master_port_fn(pbpctl_dev);\n"
  " \t\tif (pbpctl_dev_m) {\n"
  "@@ -4089,7 +4049,8 @@ int set_bp_self_test(struct bpctl_dev *pbpctl_dev, unsigned int param)\n"
- " \t\tpbpctl_dev->bp_self_test_flag = param = 0 ? 0 : 1;\n"
+ " \t\tpbpctl_dev->bp_self_test_flag = param == 0 ? 0 : 1;\n"
  " \t\tpbpctl_dev_sl = get_status_port_fn(pbpctl_dev);\n"
  " \n"
  "-\t\tif ((pbpctl_dev_sl->ndev) && (pbpctl_dev_sl->ndev->netdev_ops)) {\n"
  "+\t\tif ((pbpctl_dev_sl->ndev) &&\n"
  "+\t\t    (pbpctl_dev_sl->ndev->netdev_ops)) {\n"
  " \t\t\trtnl_lock();\n"
- " \t\t\tif (pbpctl_dev->bp_self_test_flag = 1) {\n"
+ " \t\t\tif (pbpctl_dev->bp_self_test_flag == 1) {\n"
  " \n"
  "@@ -4428,7 +4389,8 @@ static int set_dis_tap_fn(struct bpctl_dev *pbpctl_dev, int dis_param)\n"
  " \tif (!pbpctl_dev)\n"
@@ -1348,7 +1352,7 @@
  " \t SILICOM_PEG4BPI6_SSID /*PCI_ANY_ID */ , PEG4BPI6, \"PEG4BPI6\"},\n"
  "@@ -6250,6 +6213,7 @@ static void find_fw(struct bpctl_dev *dev)\n"
  " \n"
- " \tif (dev->bp_10gb = 1 && dev->bp_fw_ver = 0xff) {\n"
+ " \tif (dev->bp_10gb == 1 && dev->bp_fw_ver == 0xff) {\n"
  " \t\tint cnt = 100;\n"
  "+\n"
  " \t\twhile (cnt--) {\n"
@@ -1370,7 +1374,7 @@
  " \n"
  "@@ -6305,15 +6270,15 @@ static int init_one(struct bpctl_dev *dev, struct bpmod_info *info, struct pci_d\n"
  " \tif (BP10GB_IF_SERIES(dev->subdevice)) {\n"
- " \t\tif (dev->ifindex = 0) {\n"
+ " \t\tif (dev->ifindex == 0) {\n"
  " \t\t\tunregister_chrdev(major_num, DEVICE_NAME);\n"
  "-\t\t\tprintk(\"Please load network driver for %s adapter!\\n\",\n"
  "-\t\t\t     dev->name);\n"
@@ -1481,4 +1485,4 @@
  " \treturn ret;\n"
   }
 
-c0a09987d5126bfc40d390795c5f0c441ac4184ea6eafea9e8155f6e792273ff
+491720fc77f12ab41720a358ca82f0d5a0656d114132cb6e9e7aae4f584a99c0

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.