Skip to contentSkip to conversation

staging: rtl8723bs: include: Eliminate p

PATCH Superseded Vatsala Narang 2 participants 4 messages Mar 23, 2019 1 message not in the archive Staging

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 2/2 staging: rtl8723bs: include: Eliminate p

Getting rid of p's from pointer's name

---
changes in v2:
-added this patch to patchset

 drivers/staging/rtl8723bs/include/rtw_mp.h   | 2 +-
 drivers/staging/rtl8723bs/include/rtw_recv.h | 2 +-
 drivers/staging/rtl8723bs/include/rtw_xmit.h | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
drivers/staging/rtl8723bs/include/rtw_mp.h +1 -1
index bb3970d58573..a2fe98153297 100644
@@ -44,7 +44,7 @@ struct mp_tx
 	/* struct tx_desc desc; */
 	/* u8 resvdtx[7]; */
 	u8 desc[TXDESC_SIZE];
-	u8 *pallocated_buf;
+	u8 *allocated_buf;
 	u8 *buf;
 	u32 buf_size, write_size;
 	void *PktTxThread;
drivers/staging/rtl8723bs/include/rtw_recv.h +1 -1
index 7d54cf211315..b4ac00e2ba43 100644
@@ -305,7 +305,7 @@ struct recv_buf
 	struct adapter *adapter;
 
 	u8 *pbuf;
-	u8 *pallocated_buf;
+	u8 *allocated_buf;
 
 	u32 len;
 	u8 *phead;
drivers/staging/rtl8723bs/include/rtw_xmit.h +1 -1
index 1b38b9182b31..6e4e047ad5cc 100644
@@ -252,7 +252,7 @@ struct xmit_buf
 
 	struct adapter *padapter;
 
-	u8 *pallocated_buf;
+	u8 *allocated_buf;
 
 	u8 *pbuf;
 
Signature · 1 line
2.17.1
#1 lore raw
Quoted 30 lines · Vatsala Narang

Getting rid of p's from pointer's name

---
changes in v2:

(quoted diff) +0 -1
-added this patch to patchset
 
 drivers/staging/rtl8723bs/include/rtw_mp.h   | 2 +-
 drivers/staging/rtl8723bs/include/rtw_recv.h | 2 +-
 drivers/staging/rtl8723bs/include/rtw_xmit.h | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
drivers/staging/rtl8723bs/include/rtw_mp.h +1 -1
index bb3970d58573..a2fe98153297 100644
@@ -44,7 +44,7 @@ struct mp_tx
 	/* struct tx_desc desc; */
 	/* u8 resvdtx[7]; */
 	u8 desc[TXDESC_SIZE];
-	u8 *pallocated_buf;
+	u8 *allocated_buf;
 	u8 *buf;
 	u32 buf_size, write_size;
 	void *PktTxThread;
drivers/staging/rtl8723bs/include/rtw_recv.h +0 -0
index 7d54cf211315..b4ac00e2ba43 100644

drivers/staging/rtl8723bs/include/rtw_recv.h struct recv_buf · line 307

Quoted 3 lines
drivers/staging/rtl8723bs/include/rtw_recv.h +0 -0
@@ -305,7 +305,7 @@ struct recv_buf
 	struct adapter *adapter;
 
 	u8 *pbuf;

You missed one.

Quoted 10 lines
drivers/staging/rtl8723bs/include/rtw_recv.h +1 -1
-	u8 *pallocated_buf;
+	u8 *allocated_buf;
 
 	u32 len;
 	u8 *phead;
drivers/staging/rtl8723bs/include/rtw_xmit.h +0 -0
index 1b38b9182b31..6e4e047ad5cc 100644

drivers/staging/rtl8723bs/include/rtw_xmit.h struct xmit_buf · line 257

Quoted 7 lines
drivers/staging/rtl8723bs/include/rtw_xmit.h +1 -1
@@ -252,7 +252,7 @@ struct xmit_buf
 
 	struct adapter *padapter;
 
-	u8 *pallocated_buf;
+	u8 *allocated_buf;
 
 	u8 *pbuf;

And another one.

These are all structure fields. Are they never used? Did you compile the driver?

julia

Quoted 11 lines
drivers/staging/rtl8723bs/include/rtw_xmit.h +0 -1
--

2.17.1

--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20190323174121.5857-1-vatsalanarang%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

#3 lore raw
In reply to a message not in the archive
Quoted 22 lines · Vatsala Narang

>          u8 *pbuf;

You missed one.

      > -        u8 *pallocated_buf;
      > +        u8 *allocated_buf;
      >
      >          u8 *pbuf;

      And another one.

      These are all structure fields.  Are they never used?  Did you
      compile the
      driver?

      julia

       
Quoted 5 lines

yes, I  have compiled the driver and these structure fields are used in the code.
I missed *pbuf as it was used more than 150 times in the code so patch size will become too long, I will make appropriate changes if you suggest me to do so.

You may as well go for it.

julia

Quoted 14 lines

thanks in advance,
Vatsala

--
You received this message because you are subscribed to the Google Groups
"outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visithttps://groups.google.com/d/msgid/outreachy-kernel/f926567f-8df4-4812-a8ce- 6383a32307d2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

#4 lore raw
In reply to a message not in the archive
Quoted 22 lines · Vatsala Narang

>          u8 *pbuf;

You missed one.

      > -        u8 *pallocated_buf;
      > +        u8 *allocated_buf;
      >
      >          u8 *pbuf;

      And another one.

      These are all structure fields.  Are they never used?  Did you
      compile the
      driver?

      julia

       
Quoted 5 lines

yes, I  have compiled the driver and these structure fields are used in the code.
I missed *pbuf as it was used more than 150 times in the code so patch size will become too long, I will make appropriate changes if you suggest me to do so.

You can make one patch for each field.

julia

Quoted 14 lines

thanks in advance,
Vatsala

--
You received this message because you are subscribed to the Google Groups
"outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visithttps://groups.google.com/d/msgid/outreachy-kernel/f926567f-8df4-4812-a8ce- 6383a32307d2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.