staging: wlagn49_h2: move open brace of if from below to beside of if statement
the opening brace of the if statement should be beside to it, not below to it. Signed-off-by: Devendra Naga <develkernel412222@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
4b9645b711
commit
3cf7c7aaee
1 changed files with 5 additions and 10 deletions
|
@ -1795,22 +1795,19 @@ int wl_send_dma( struct wl_private *lp, struct sk_buff *skb, int port )
|
||||||
|
|
||||||
DBG_FUNC( "wl_send_dma" );
|
DBG_FUNC( "wl_send_dma" );
|
||||||
|
|
||||||
if( lp == NULL )
|
if( lp == NULL ) {
|
||||||
{
|
|
||||||
DBG_ERROR( DbgInfo, "Private adapter struct is NULL\n" );
|
DBG_ERROR( DbgInfo, "Private adapter struct is NULL\n" );
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( lp->dev == NULL )
|
if( lp->dev == NULL ) {
|
||||||
{
|
|
||||||
DBG_ERROR( DbgInfo, "net_device struct in wl_private is NULL\n" );
|
DBG_ERROR( DbgInfo, "net_device struct in wl_private is NULL\n" );
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* AGAIN, ALL THE QUEUEING DONE HERE IN I/O MODE IS NOT PERFORMED */
|
/* AGAIN, ALL THE QUEUEING DONE HERE IN I/O MODE IS NOT PERFORMED */
|
||||||
|
|
||||||
if( skb == NULL )
|
if( skb == NULL ) {
|
||||||
{
|
|
||||||
DBG_WARNING (DbgInfo, "Nothing to send.\n");
|
DBG_WARNING (DbgInfo, "Nothing to send.\n");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
@ -1820,8 +1817,7 @@ int wl_send_dma( struct wl_private *lp, struct sk_buff *skb, int port )
|
||||||
/* Get a free descriptor */
|
/* Get a free descriptor */
|
||||||
desc = wl_pci_dma_get_tx_packet( lp );
|
desc = wl_pci_dma_get_tx_packet( lp );
|
||||||
|
|
||||||
if( desc == NULL )
|
if( desc == NULL ) {
|
||||||
{
|
|
||||||
if( lp->netif_queue_on == TRUE ) {
|
if( lp->netif_queue_on == TRUE ) {
|
||||||
netif_stop_queue( lp->dev );
|
netif_stop_queue( lp->dev );
|
||||||
WL_WDS_NETIF_STOP_QUEUE( lp );
|
WL_WDS_NETIF_STOP_QUEUE( lp );
|
||||||
|
@ -1837,8 +1833,7 @@ int wl_send_dma( struct wl_private *lp, struct sk_buff *skb, int port )
|
||||||
|
|
||||||
desc_next = desc->next_desc_addr;
|
desc_next = desc->next_desc_addr;
|
||||||
|
|
||||||
if( desc_next->buf_addr == NULL )
|
if( desc_next->buf_addr == NULL ) {
|
||||||
{
|
|
||||||
DBG_ERROR( DbgInfo, "DMA descriptor buf_addr is NULL\n" );
|
DBG_ERROR( DbgInfo, "DMA descriptor buf_addr is NULL\n" );
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue