staging: bcm: Cleanup real_int_callback()
Fixes checkpatch.pl warnings and errors and removes some dead code. Checkpath warnings and errors fixed: WARNING: line over 80 characters WARNING: space prohibited before semicolon ERROR: that open brace { should be on the previous line ERROR: space required before the open parenthesis '(' ERROR: space required after that ',' (ctx:VxV) Signed-off-by: Jade Bilkey <herself@thefumon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
9cb516bdd8
commit
54585d5e4c
@ -4,28 +4,30 @@
|
|||||||
static void read_int_callback(struct urb *urb/*, struct pt_regs *regs*/)
|
static void read_int_callback(struct urb *urb/*, struct pt_regs *regs*/)
|
||||||
{
|
{
|
||||||
int status = urb->status;
|
int status = urb->status;
|
||||||
struct bcm_interface_adapter *psIntfAdapter = (struct bcm_interface_adapter *)urb->context;
|
struct bcm_interface_adapter *psIntfAdapter =
|
||||||
struct bcm_mini_adapter *Adapter = psIntfAdapter->psAdapter ;
|
(struct bcm_interface_adapter *)urb->context;
|
||||||
|
struct bcm_mini_adapter *Adapter = psIntfAdapter->psAdapter;
|
||||||
|
|
||||||
if (netif_msg_intr(Adapter))
|
if (netif_msg_intr(Adapter))
|
||||||
pr_info(PFX "%s: interrupt status %d\n",
|
pr_info(PFX "%s: interrupt status %d\n",
|
||||||
Adapter->dev->name, status);
|
Adapter->dev->name, status);
|
||||||
|
|
||||||
if(Adapter->device_removed == TRUE)
|
if (Adapter->device_removed == TRUE) {
|
||||||
{
|
BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, INTF_INIT,
|
||||||
BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, INTF_INIT, DBG_LVL_ALL,"Device has Got Removed.");
|
DBG_LVL_ALL, "Device has Got Removed.");
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(((Adapter->bPreparingForLowPowerMode == TRUE) && (Adapter->bDoSuspend == TRUE)) ||
|
if (((Adapter->bPreparingForLowPowerMode == TRUE) &&
|
||||||
psIntfAdapter->bSuspended ||
|
(Adapter->bDoSuspend == TRUE)) ||
|
||||||
psIntfAdapter->bPreparingForBusSuspend)
|
psIntfAdapter->bSuspended ||
|
||||||
{
|
psIntfAdapter->bPreparingForBusSuspend) {
|
||||||
BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, INTF_INIT, DBG_LVL_ALL,"Interrupt call back is called while suspending the device");
|
BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, INTF_INIT,
|
||||||
return ;
|
DBG_LVL_ALL,
|
||||||
|
"Interrupt call back is called while suspending the device");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//BCM_DEBUG_PRINT(Adapter,DBG_TYPE_TX, NEXT_SEND, DBG_LVL_ALL, "interrupt urb status %d", status);
|
|
||||||
switch (status) {
|
switch (status) {
|
||||||
/* success */
|
/* success */
|
||||||
case STATUS_SUCCESS:
|
case STATUS_SUCCESS:
|
||||||
|
Loading…
Reference in New Issue
Block a user