public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] driver: staging: Coding Style correction and removal of unused macro
@ 2012-09-24 14:57 Harsh Kumar
  2012-09-25 11:31 ` Pavel Machek
  0 siblings, 1 reply; 2+ messages in thread
From: Harsh Kumar @ 2012-09-24 14:57 UTC (permalink / raw)
  To: kernel-janitors

Removed an unused macro. Plus, couple of grammatical and coding style fixes.

1) The macro _INLINE is not used anywhere. Anyways __inline is not portable.
2) Changed comment from "Not use" to "Unused" make it grammatically correct and
   to fit in 80 word limit.
3.) Removed space after *

Signed-off-by: Harsh Kumar <harsh1kumar@gmail.com>

diff -uprN a/drivers/staging/winbond/sme_api.h b/drivers/staging/winbond/sme_api.h
--- a/drivers/staging/winbond/sme_api.h	2012-09-17 03:28:51.000000000 +0530
+++ b/drivers/staging/winbond/sme_api.h	2012-09-24 19:16:27.972116003 +0530
@@ -12,7 +12,6 @@
 #include "localpara.h"
 
 /****************** CONSTANT AND MACRO SECTION ******************************/
-#define _INLINE				__inline
 
 #define MEDIA_STATE_DISCONNECTED	0
 #define MEDIA_STATE_CONNECTED		1
@@ -26,17 +25,17 @@
 
 /* OID_802_11_BSSID */
 s8 sme_get_bssid(void *pcore_data, u8 *pbssid);
-s8 sme_get_desired_bssid(void *pcore_data, u8 *pbssid); /* Not use */
+s8 sme_get_desired_bssid(void *pcore_data, u8 *pbssid); /* Unused */
 s8 sme_set_desired_bssid(void *pcore_data, u8 *pbssid);
 
 /* OID_802_11_SSID */
 s8 sme_get_ssid(void *pcore_data, u8 *pssid, u8 *pssid_len);
-s8 sme_get_desired_ssid(void *pcore_data, u8 *pssid, u8 *pssid_len);/* Not use */
+s8 sme_get_desired_ssid(void *pcore_data, u8 *pssid, u8 *pssid_len);/* Unused */
 s8 sme_set_desired_ssid(void *pcore_data, u8 *pssid, u8 ssid_len);
 
 /* OID_802_11_INFRASTRUCTURE_MODE */
 s8 sme_get_bss_type(void *pcore_data, u8 *pbss_type);
-s8 sme_get_desired_bss_type(void *pcore_data, u8 *pbss_type); /* Not use */
+s8 sme_get_desired_bss_type(void *pcore_data, u8 *pbss_type); /* Unused */
 s8 sme_set_desired_bss_type(void *pcore_data, u8 bss_type);
 
 /* OID_802_11_FRAGMENTATION_THRESHOLD */
@@ -138,7 +137,7 @@ s8 sme_set_txrate_policy(void *pcore_dat
 s8 sme_get_txrate_policy(void *pcore_data, u8 *policy);
 s8 sme_get_cwmin_value(void *pcore_data, u8 *cwmin);
 s8 sme_get_cwmax_value(void *pcore_data, u16 *cwmax);
-s8 sme_get_ms_radio_mode(void *pcore_data, u8 * pMsRadioOff);
+s8 sme_get_ms_radio_mode(void *pcore_data, u8 *pMsRadioOff);
 s8 sme_set_ms_radio_mode(void *pcore_data, u8 boMsRadioOff);
 
 void sme_get_tx_power_level(void *pcore_data, u32 *TxPower);



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [patch] driver: staging: Coding Style correction and removal of unused macro
  2012-09-24 14:57 [patch] driver: staging: Coding Style correction and removal of unused macro Harsh Kumar
@ 2012-09-25 11:31 ` Pavel Machek
  0 siblings, 0 replies; 2+ messages in thread
From: Pavel Machek @ 2012-09-25 11:31 UTC (permalink / raw)
  To: kernel-janitors

On Mon 2012-09-24 20:27:04, Harsh Kumar wrote:
> Removed an unused macro. Plus, couple of grammatical and coding style fixes.
> 
> 1) The macro _INLINE is not used anywhere. Anyways __inline is not portable.
> 2) Changed comment from "Not use" to "Unused" make it grammatically correct and
>    to fit in 80 word limit.
> 3.) Removed space after *
> 
> Signed-off-by: Harsh Kumar <harsh1kumar@gmail.com>

ACK.

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-09-25 11:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-24 14:57 [patch] driver: staging: Coding Style correction and removal of unused macro Harsh Kumar
2012-09-25 11:31 ` Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox