All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <20150306082140.GA9740@sloth>

diff --git a/a/1.txt b/N1/1.txt
index 1b13271..b1bb6e3 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -11,7 +11,7 @@ constant char[] c;
 @@
 
 e = \(kzalloc\|kmalloc\|devm_kzalloc\|devm_kmalloc\)(...);
-if (e = NULL) {
+if (e == NULL) {
   <+...
 -  print(...,c,...);
   ... when any
@@ -38,9 +38,9 @@ index 7b56411..38f5b7f 100644
  	DBG_8723A("%s\n", __func__);
  
  	ReservedPagePacket = kzalloc(1000, GFP_KERNEL);
--	if (ReservedPagePacket = NULL) {
+-	if (ReservedPagePacket == NULL) {
 -		DBG_8723A("%s: alloc ReservedPagePacket fail!\n", __func__);
-+	if (ReservedPagePacket = NULL)
++	if (ReservedPagePacket == NULL)
  		return;
 -	}
  
@@ -50,9 +50,9 @@ index 7b56411..38f5b7f 100644
  	DBG_8723A("+%s\n", __func__);
  
  	ReservedPagePacket = kzalloc(1024, GFP_KERNEL);
--	if (ReservedPagePacket = NULL) {
+-	if (ReservedPagePacket == NULL) {
 -		DBG_8723A("%s: alloc ReservedPagePacket fail!\n", __func__);
-+	if (ReservedPagePacket = NULL)
++	if (ReservedPagePacket == NULL)
  		return;
 -	}
  
@@ -66,9 +66,9 @@ index a5eadd4..6d50b09 100644
  	}
  
  	efuseTbl = kmalloc(EFUSE_MAP_LEN_8723A, GFP_KERNEL);
--	if (efuseTbl = NULL) {
+-	if (efuseTbl == NULL) {
 -		DBG_8723A("%s: alloc efuseTbl fail!\n", __func__);
-+	if (efuseTbl = NULL)
++	if (efuseTbl == NULL)
  		return;
 -	}
  	/*  0xff will be efuse default value instead of 0x00. */
@@ -78,9 +78,9 @@ index a5eadd4..6d50b09 100644
  	}
  
  	efuseTbl = kmalloc(EFUSE_BT_MAP_LEN, GFP_KERNEL);
--	if (efuseTbl = NULL) {
+-	if (efuseTbl == NULL) {
 -		DBG_8723A("%s: efuseTbl malloc fail!\n", __func__);
-+	if (efuseTbl = NULL)
++	if (efuseTbl == NULL)
  		return;
 -	}
  	/*  0xff will be efuse default value instead of 0x00. */
@@ -111,7 +111,7 @@ index 537bd82..40bdf4b 100644
 @@ -1327,8 +1327,6 @@ static int rtw_cfg80211_set_probe_req_wpsp2pie(struct rtw_adapter *padapter,
  			pmlmepriv->wps_probe_req_ie = kmemdup(wps_ie, wps_ie[1],
  							      GFP_KERNEL);
- 			if (pmlmepriv->wps_probe_req_ie = NULL) {
+ 			if (pmlmepriv->wps_probe_req_ie == NULL) {
 -				DBG_8723A("%s()-%d: kmalloc() ERROR!\n",
 -					  __func__, __LINE__);
  				return -EINVAL;
diff --git a/a/content_digest b/N1/content_digest
index 9554800..da66677 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -1,6 +1,6 @@
  "From\0Quentin Lambert <lambert.quentin@gmail.com>\0"
  "Subject\0[PATCH 1/1] staging: rtl8723au: Remove unnecessary OOM message\0"
- "Date\0Fri, 06 Mar 2015 08:21:40 +0000\0"
+ "Date\0Fri, 6 Mar 2015 09:21:40 +0100\0"
  "To\0Larry Finger <Larry.Finger@lwfinger.net>"
   Jes Sorensen <Jes.Sorensen@redhat.com>
  " Greg Kroah-Hartman <gregkh@linuxfoundation.org>\0"
@@ -23,7 +23,7 @@
  "@@\n"
  "\n"
  "e = \\(kzalloc\\|kmalloc\\|devm_kzalloc\\|devm_kmalloc\\)(...);\n"
- "if (e = NULL) {\n"
+ "if (e == NULL) {\n"
  "  <+...\n"
  "-  print(...,c,...);\n"
  "  ... when any\n"
@@ -50,9 +50,9 @@
  " \tDBG_8723A(\"%s\\n\", __func__);\n"
  " \n"
  " \tReservedPagePacket = kzalloc(1000, GFP_KERNEL);\n"
- "-\tif (ReservedPagePacket = NULL) {\n"
+ "-\tif (ReservedPagePacket == NULL) {\n"
  "-\t\tDBG_8723A(\"%s: alloc ReservedPagePacket fail!\\n\", __func__);\n"
- "+\tif (ReservedPagePacket = NULL)\n"
+ "+\tif (ReservedPagePacket == NULL)\n"
  " \t\treturn;\n"
  "-\t}\n"
  " \n"
@@ -62,9 +62,9 @@
  " \tDBG_8723A(\"+%s\\n\", __func__);\n"
  " \n"
  " \tReservedPagePacket = kzalloc(1024, GFP_KERNEL);\n"
- "-\tif (ReservedPagePacket = NULL) {\n"
+ "-\tif (ReservedPagePacket == NULL) {\n"
  "-\t\tDBG_8723A(\"%s: alloc ReservedPagePacket fail!\\n\", __func__);\n"
- "+\tif (ReservedPagePacket = NULL)\n"
+ "+\tif (ReservedPagePacket == NULL)\n"
  " \t\treturn;\n"
  "-\t}\n"
  " \n"
@@ -78,9 +78,9 @@
  " \t}\n"
  " \n"
  " \tefuseTbl = kmalloc(EFUSE_MAP_LEN_8723A, GFP_KERNEL);\n"
- "-\tif (efuseTbl = NULL) {\n"
+ "-\tif (efuseTbl == NULL) {\n"
  "-\t\tDBG_8723A(\"%s: alloc efuseTbl fail!\\n\", __func__);\n"
- "+\tif (efuseTbl = NULL)\n"
+ "+\tif (efuseTbl == NULL)\n"
  " \t\treturn;\n"
  "-\t}\n"
  " \t/*  0xff will be efuse default value instead of 0x00. */\n"
@@ -90,9 +90,9 @@
  " \t}\n"
  " \n"
  " \tefuseTbl = kmalloc(EFUSE_BT_MAP_LEN, GFP_KERNEL);\n"
- "-\tif (efuseTbl = NULL) {\n"
+ "-\tif (efuseTbl == NULL) {\n"
  "-\t\tDBG_8723A(\"%s: efuseTbl malloc fail!\\n\", __func__);\n"
- "+\tif (efuseTbl = NULL)\n"
+ "+\tif (efuseTbl == NULL)\n"
  " \t\treturn;\n"
  "-\t}\n"
  " \t/*  0xff will be efuse default value instead of 0x00. */\n"
@@ -123,7 +123,7 @@
  "@@ -1327,8 +1327,6 @@ static int rtw_cfg80211_set_probe_req_wpsp2pie(struct rtw_adapter *padapter,\n"
  " \t\t\tpmlmepriv->wps_probe_req_ie = kmemdup(wps_ie, wps_ie[1],\n"
  " \t\t\t\t\t\t\t      GFP_KERNEL);\n"
- " \t\t\tif (pmlmepriv->wps_probe_req_ie = NULL) {\n"
+ " \t\t\tif (pmlmepriv->wps_probe_req_ie == NULL) {\n"
  "-\t\t\t\tDBG_8723A(\"%s()-%d: kmalloc() ERROR!\\n\",\n"
  "-\t\t\t\t\t  __func__, __LINE__);\n"
  " \t\t\t\treturn -EINVAL;\n"
@@ -149,4 +149,4 @@
  "-- \n"
  1.9.1
 
-0b660421781689e555d03913ff20874144bde6a1109feddffc9098f6c016d53d
+f8198d4818cf018ed630b4526ac3f10c218754b2cbb5cad5116e5549ef8eb842

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.