staging: wlan-ng: scripts/checkpatch.pl error fixes.
scripts/checkpatch.pl error fixes. This is a TODO item. This patch fixes most of the errors reported by checkpatch.pl in wlan-ng directory of staging tree. Signed-off-by: Mithlesh Thukral <mithlesh@linsyssoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
0984e56a65
commit
297f06cea6
@@ -54,7 +54,7 @@
|
|||||||
#include <linux/random.h>
|
#include <linux/random.h>
|
||||||
#include <linux/kernel.h>
|
#include <linux/kernel.h>
|
||||||
|
|
||||||
// #define WEP_DEBUG
|
/* #define WEP_DEBUG */
|
||||||
|
|
||||||
/*================================================================*/
|
/*================================================================*/
|
||||||
/* Project Includes */
|
/* Project Includes */
|
||||||
|
@@ -177,19 +177,19 @@ typedef struct imgchunk {
|
|||||||
/* s-record image processing */
|
/* s-record image processing */
|
||||||
|
|
||||||
/* Data records */
|
/* Data records */
|
||||||
unsigned int ns3data = 0;
|
unsigned int ns3data;
|
||||||
s3datarec_t s3data[S3DATA_MAX];
|
s3datarec_t s3data[S3DATA_MAX];
|
||||||
|
|
||||||
/* Plug records */
|
/* Plug records */
|
||||||
unsigned int ns3plug = 0;
|
unsigned int ns3plug;
|
||||||
s3plugrec_t s3plug[S3PLUG_MAX];
|
s3plugrec_t s3plug[S3PLUG_MAX];
|
||||||
|
|
||||||
/* CRC records */
|
/* CRC records */
|
||||||
unsigned int ns3crc = 0;
|
unsigned int ns3crc;
|
||||||
s3crcrec_t s3crc[S3CRC_MAX];
|
s3crcrec_t s3crc[S3CRC_MAX];
|
||||||
|
|
||||||
/* Info records */
|
/* Info records */
|
||||||
unsigned int ns3info = 0;
|
unsigned int ns3info;
|
||||||
s3inforec_t s3info[S3INFO_MAX];
|
s3inforec_t s3info[S3INFO_MAX];
|
||||||
|
|
||||||
/* S7 record (there _better_ be only one) */
|
/* S7 record (there _better_ be only one) */
|
||||||
|
@@ -115,7 +115,7 @@ static wlandevice_t *create_wlan(void);
|
|||||||
int prism2_reset_holdtime = 30; /* Reset hold time in ms */
|
int prism2_reset_holdtime = 30; /* Reset hold time in ms */
|
||||||
int prism2_reset_settletime = 100; /* Reset settle time in ms */
|
int prism2_reset_settletime = 100; /* Reset settle time in ms */
|
||||||
|
|
||||||
static int prism2_doreset = 0; /* Do a reset at init? */
|
static int prism2_doreset; /* Do a reset at init? */
|
||||||
|
|
||||||
module_param(prism2_doreset, int, 0644);
|
module_param(prism2_doreset, int, 0644);
|
||||||
MODULE_PARM_DESC(prism2_doreset, "Issue a reset on initialization");
|
MODULE_PARM_DESC(prism2_doreset, "Issue a reset on initialization");
|
||||||
@@ -455,7 +455,8 @@ u32 prism2sta_ifstate(wlandevice_t * wlandev, u32 ifstate)
|
|||||||
* Initialize the device+driver sufficiently
|
* Initialize the device+driver sufficiently
|
||||||
* for firmware loading.
|
* for firmware loading.
|
||||||
*/
|
*/
|
||||||
if ((result = hfa384x_drvr_start(hw))) {
|
result = hfa384x_drvr_start(hw);
|
||||||
|
if (result) {
|
||||||
printk(KERN_ERR
|
printk(KERN_ERR
|
||||||
"hfa384x_drvr_start() failed,"
|
"hfa384x_drvr_start() failed,"
|
||||||
"result=%d\n", (int)result);
|
"result=%d\n", (int)result);
|
||||||
@@ -499,7 +500,8 @@ u32 prism2sta_ifstate(wlandevice_t * wlandev, u32 ifstate)
|
|||||||
* can't make any assumptions about the state
|
* can't make any assumptions about the state
|
||||||
* of the hardware or a previous firmware load.
|
* of the hardware or a previous firmware load.
|
||||||
*/
|
*/
|
||||||
if ((result = hfa384x_drvr_start(hw))) {
|
result = hfa384x_drvr_start(hw);
|
||||||
|
if (result) {
|
||||||
printk(KERN_ERR
|
printk(KERN_ERR
|
||||||
"hfa384x_drvr_start() failed,"
|
"hfa384x_drvr_start() failed,"
|
||||||
"result=%d\n", (int)result);
|
"result=%d\n", (int)result);
|
||||||
@@ -509,7 +511,8 @@ u32 prism2sta_ifstate(wlandevice_t * wlandev, u32 ifstate)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((result = prism2sta_getcardinfo(wlandev))) {
|
result = prism2sta_getcardinfo(wlandev);
|
||||||
|
if (result) {
|
||||||
printk(KERN_ERR
|
printk(KERN_ERR
|
||||||
"prism2sta_getcardinfo() failed,"
|
"prism2sta_getcardinfo() failed,"
|
||||||
"result=%d\n", (int)result);
|
"result=%d\n", (int)result);
|
||||||
@@ -519,7 +522,8 @@ u32 prism2sta_ifstate(wlandevice_t * wlandev, u32 ifstate)
|
|||||||
wlandev->msdstate = WLAN_MSD_HWPRESENT;
|
wlandev->msdstate = WLAN_MSD_HWPRESENT;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if ((result = prism2sta_globalsetup(wlandev))) {
|
result = prism2sta_globalsetup(wlandev);
|
||||||
|
if (result) {
|
||||||
printk(KERN_ERR
|
printk(KERN_ERR
|
||||||
"prism2sta_globalsetup() failed,"
|
"prism2sta_globalsetup() failed,"
|
||||||
"result=%d\n", (int)result);
|
"result=%d\n", (int)result);
|
||||||
|
@@ -111,8 +111,8 @@ static int prism2sta_probe_usb(struct usb_interface *interface,
|
|||||||
int result = 0;
|
int result = 0;
|
||||||
|
|
||||||
dev = interface_to_usbdev(interface);
|
dev = interface_to_usbdev(interface);
|
||||||
|
wlandev = create_wlan();
|
||||||
if ((wlandev = create_wlan()) == NULL) {
|
if (wlandev == NULL) {
|
||||||
printk(KERN_ERR "%s: Memory allocation failure.\n", dev_info);
|
printk(KERN_ERR "%s: Memory allocation failure.\n", dev_info);
|
||||||
result = -EIO;
|
result = -EIO;
|
||||||
goto failed;
|
goto failed;
|
||||||
|
Reference in New Issue
Block a user