1. 19 Mar, 2014 7 commits
  2. 18 Mar, 2014 33 commits
    • Gary Rookard's avatar
      Staging: bcm: CmHost: moved and removed declarations and tmp bracing. · 3c13b046
      Gary Rookard authored
      Firstly, some background is needed to confirm the validity of
      this patch as error fixing. It seems the developer when writing
      this driver from scratch, used what are known to me as error
      suppressors in the form of extra tmp bracing added to the case labels.
      They aid during construction time, but are not intended to remain.
      
      In this scenario there are declarations occupying space only
      reserved for statements. If these tmp braces were to be removed
      before the declarations in question were reassigned to there
      proper place in the funtion, compile time errors would result.
      
      So, having that said, I moved the declarations,
      UINT uiSearchRuleIndex = 0; and ULONG ulSFID;,
      and also deleted the duplicates thereof from
      the switch/case statement.
      
      Removed temporary bracing from case labels.
      
      Removed new lines as needed.
      
      Properly indented case breaks.
      
      Added /* FALLTHROUGH */ comments to switch/case.
      Signed-off-by: default avatarGary Rookard <garyrookard@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      3c13b046
    • Masood Mehmood's avatar
      staging: dgap: Fixed sparse error: same symbol redeclared with different type · fd54889b
      Masood Mehmood authored
      sparse reported dgap_do_fep_load is redeclared with different type. while
      fixing, I noticed __user attribute is used incorrectly in declaration.
      There is no need to define __user for firware->data.
      
      Replaced the __user with 'const uchar *' from function dgap_do_fep_load and
      did the same for function dgap_do_bios_load
      
      patch generated against: next-20140318
      Signed-off-by: default avatarMasood Mehmood <ody.guru@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      fd54889b
    • Silvio F's avatar
      staging: unisys: kmalloc/memset to kzalloc conversation · a3acc83a
      Silvio F authored
      This patch solves the Coccinelle warning: "kzalloc should be used
      instead of kmalloc/memset"
      
      This patch is a fixup for
      
      	linux-next: 97a84f12
      	"Staging: unisys: Replace kmalloc/memset with kzalloc"
      
      The ALLOC_CMDRSP #define is after transformation to kzalloc only a
      rename for kzalloc and was completly removed.
      Signed-off-by: default avatarSilvio F <silvio.fricke@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      a3acc83a
    • Richard Weinberger's avatar
      staging/xillybus: Handle OOM in xillybus_init() · 3e67dee2
      Richard Weinberger authored
      alloc_workqueue() can fail and returns NULL in case of
      OOM.
      Handle this case and undo class_create().
      Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      3e67dee2
    • Mikhail Boiko's avatar
      staging: line6: Fix coding style problem · b5f87cf9
      Mikhail Boiko authored
      Fix style issue for eudyptula challenge
      Signed-off-by: default avatarMikhail Boiko <mm.boiko@yandex.ru>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      b5f87cf9
    • Monam Agarwal's avatar
      Staging: ced1401: Fix no new typedef warning in ced_ioctl.h · 431cd0e5
      Monam Agarwal authored
      This patch fixes following checkpatch.pl warnings:
      WARNING:do not add new typedefs.All the related files have been modified.
      Signed-off-by: default avatarMonam Agarwal <monamagarwal123@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      431cd0e5
    • Monam Agarwal's avatar
      Staging: ced1401: Fix typedef warnings in ced_ioctl.h · 5f3ccfcf
      Monam Agarwal authored
      This patch fixes following checkpatch.pl warnings:
      WARNING:do not add new typedefs.
      In this patch i have also renamed TransferDesc to transfer_area_desc in order to clearly indicate
      that it describes the transfer area.
      Signed-off-by: default avatarMonam Agarwal <monamagarwal123@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      5f3ccfcf
    • Keerthimai Janarthanan's avatar
      staging: usbip: Fix quoted string split across lines. · 90ae9d44
      Keerthimai Janarthanan authored
      Fix quoted string split across lines.
      Signed-off-by: default avatarKeerthimai Janarthanan <keerthimaipb@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      90ae9d44
    • Aybuke Ozdemir's avatar
      staging/octeon:ethernet-rgmii.c: Fix line over 80 characters. · f09d1444
      Aybuke Ozdemir authored
      checkpatch.pl issues with line over
      80 characters in ethernet-rgmii.c
      Signed-off-by: default avatarAybuke Ozdemir <aybuke.147@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      f09d1444
    • Daeseok Youn's avatar
      staging: cxt1e1: remove unneeded mkret() calls · 2ebd09ac
      Daeseok Youn authored
      The mkret() change a value of error from positive to
      negative. This patch is modified to return negative value
      when it failed. It doesn't need to call with function
      for changing from positive to negative.
      Signed-off-by: default avatarDaeseok Youn <daeseok.youn@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      2ebd09ac
    • Michael Welling's avatar
      STAGING: comedi: style and checkpatch fixes · 6f2c9efa
      Michael Welling authored
      Updates block comment per Documentation/CodingStyle.
      Also updated due to checkpatch warnings about qouted string
      after Lindent modified the spacing slightly.
      Signed-off-by: default avatarMichael Welling <mwelling@ieee.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      6f2c9efa
    • Elena Oat's avatar
      Staging: rtl8188eu: Fix warning of printk() should include KERN_ facility level. · 1bdbd758
      Elena Oat authored
      This patch fixes the warning of "printk() should include KERN_ facility
      level" in file rtw_debug.c.
      Signed-off-by: default avatarElena Oat <oat.elena@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      1bdbd758
    • Elena Oat's avatar
      Staging: rtl8188eu: Fix warning of unchecked sscanf return value. · f12919d5
      Elena Oat authored
      This patch fixes the warning "unchecked sscanf return value" in file
      rtw_mp.c. Zero is returned in case sscanf fails or if less than expected
      items are read and assigned successfully. I have decided to return zero,
      because in previous conditional statements zero was returned in case of
      failure.
      
      While at it, I have also fixed the warning of line over 80
      characters.
      Signed-off-by: default avatarElena Oat <oat.elena@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      f12919d5
    • Aybuke Ozdemir's avatar
      staging/speakup:speakup_dectlk.c Fix line over 80 characters. · 94b9c616
      Aybuke Ozdemir authored
      checkpatch.pl issues with line over
      80 characters in speakup_dectlk.c
      Signed-off-by: default avatarAybuke Ozdemir <aybuke.147@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      94b9c616
    • Georgiana Rodica Chelu's avatar
      staging: luster: do not combine value 0 with | · 34d1f637
      Georgiana Rodica Chelu authored
      There is no point in combining a variable
      that is 0 with other things with |
      
      The semantic patch used:
      
      @@
      expression x,e,e1;
      statement S;
      @@
      
      if (x == 0) {
       <... when != x = e1
            when != while(...) S
            when != for(...;...;...) S
      
      -  x |= e
      +  x  = e
        ...>
      }
      Signed-off-by: default avatarGeorgiana Rodica Chelu <georgiana.chelu93@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      34d1f637
    • Aybuke Ozdemir's avatar
      staging: addac: adt7316.c: Fix line over 80 characters · 6db685c3
      Aybuke Ozdemir authored
      Fix checkpatch.pl issues with line over 80 characters in adt7316.c
      Signed-off-by: default avatarAybuke Ozdemir <aybuke.147@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      6db685c3
    • Gulsah Kose's avatar
      staging: rtl8192e: Fix quoted string split across lines · 91f14c85
      Gulsah Kose authored
      Fix checkpatch.pl issues with quoted string split across lines in
      dot11d.c
      Signed-off-by: default avatarGulsah Kose <gulsah.1004@gmail.com>
      Acked-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      91f14c85
    • Andreea-Cristina Bernat's avatar
      Staging: lirc: Fix warning: assignment of bool to 0/1 · 4f4c9652
      Andreea-Cristina Bernat authored
      This patch solves the warning "Assignment of bool to 0/1"
      Signed-off-by: default avatarAndreea-Cristina Bernat <bernat.ada@gmail.com>
      Acked-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      4f4c9652
    • Kristina Martšenko's avatar
      staging: slicoss: free IO remapping on failure · eea7c703
      Kristina Martšenko authored
      Make sure iounmap is always called after ioremap when module loading
      fails. Also remove a call to release_mem_region because that region is
      never reserved in the first place.
      
      Fixes the following issue reported by Coccinelle:
      drivers/staging/slicoss/slicoss.c:3727:1-7: ERROR: missing iounmap; ioremap on line 3661 and execution via conditional on line 3677
      Signed-off-by: default avatarKristina Martšenko <kristina.martsenko@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      eea7c703
    • Gulsah Kose's avatar
      staging: rtl8712: Fix multiple spaces after return type · ba2ac29e
      Gulsah Kose authored
      Fix checkpatch.pl issues with multiple spaces after return type in
      drv_types.h
      Signed-off-by: default avatarGulsah Kose <gulsah.1004@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      ba2ac29e
    • Aybuke Ozdemir's avatar
      staging/rtl8712/osdep_service.h Fix line over 80 characters. · 9ab3726b
      Aybuke Ozdemir authored
      Fix checkpatch.pl issues with
      line over 80 characters in osdep_service.h
      Signed-off-by: default avatarAybuke Ozdemir <aybuke.147@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      9ab3726b
    • Himangi Saraogi's avatar
      staging:ozwpan:Fix sparse warning of cast to restricted __le16 · accd4d7d
      Himangi Saraogi authored
      This patch fixes the following sparse warnings:
      drivers/staging/ozwpan/ozusbsvc1.c:391:36: warning: cast to restricted __le16
      drivers/staging/ozwpan/ozusbsvc1.c:393:33: warning: cast to restricted __le16
      Signed-off-by: default avatarHimangi Saraogi <himangi774@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      accd4d7d
    • Himangi Saraogi's avatar
      staging:ozwpan:Fix sparse warning of incorrect argument type · 45b1fe53
      Himangi Saraogi authored
      This patch fixes the following sparse warning:
      drivers/staging/ozwpan/ozusbsvc1.c:208:50: warning: incorrect type in argument 6 (different base types)
      drivers/staging/ozwpan/ozusbsvc1.c:208:50:    expected unsigned short [unsigned] [usertype] windex
      drivers/staging/ozwpan/ozusbsvc1.c:208:50:    got restricted __le16 [usertype] wIndex
      Signed-off-by: default avatarHimangi Saraogi <himangi774@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      45b1fe53
    • Gulsah Kose's avatar
      staging: rts5208: Fix line over 80 characters. · 8470e791
      Gulsah Kose authored
      Fix checkpatch.pl issues with line over 80 characters in rtsx_card.c
      Signed-off-by: default avatarGulsah Kose <gulsah.1004@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      8470e791
    • Aybuke Ozdemir's avatar
      staging/silicom/bypasslib/bp_ioctl.h Fix do not add new typedefs. · 78508655
      Aybuke Ozdemir authored
      Fix checkpatch.pl issues with do not add
      new typedefs in bp_ioctl.h
      Signed-off-by: default avatarAybuke Ozdemir <aybuke.147@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      78508655
    • Jade Bilkey's avatar
      staging: bcm: Remove unneeded boolean comparisons and reflow lines · 9b144596
      Jade Bilkey authored
      Removes needless boolean TRUE and false comparisons and reflows some lines to
      eliminate over 80 character if statments.
      Signed-off-by: default avatarJade Bilkey <herself@thefumon.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      9b144596
    • Jade Bilkey's avatar
      staging: bcm: Fix space before semicolon · 6246432f
      Jade Bilkey authored
      Fixes several checkpatch
      
      WARNING: space prohibited before semicolon
      Signed-off-by: default avatarJade Bilkey <herself@thefumon.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      6246432f
    • Jade Bilkey's avatar
    • Jade Bilkey's avatar
      staging: bcm: Cleanup unneeded boolean comparisons · c6e50baf
      Jade Bilkey authored
      Cleans up a few needless comparisons with booleans and cleans up an
      interupt handler to take advantage of earlier bailout shortcircuit.
      Signed-off-by: default avatarJade Bilkey <herself@thefumon.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      c6e50baf
    • Jade Bilkey's avatar
      staging: bcm: Cleanup CreateInterruptUrb() and StartInterruptUrb() · 6a259d9b
      Jade Bilkey authored
      Fixes checkpatch.pl warnings and errors:
      
      ERROR: that open brace { should be on the previous line
      +	if (!psIntfAdapter->psInterruptUrb)
      +	{
      
      WARNING: line over 80 characters
      +		BCM_DEBUG_PRINT(psIntfAdapter->psAdapter,DBG_TYPE_OTHERS, INTF_INIT, DBG_LVL_ALL,"Cannot allocate interrupt urb");
      
      ERROR: space required after that ',' (ctx:VxV)
      +		BCM_DEBUG_PRINT(psIntfAdapter->psAdapter,DBG_TYPE_OTHERS, INTF_INIT, DBG_LVL_ALL,"Cannot allocate interrupt urb");
       		                                        ^
      
      ERROR: space required after that ',' (ctx:VxV)
      +		BCM_DEBUG_PRINT(psIntfAdapter->psAdapter,DBG_TYPE_OTHERS, INTF_INIT, DBG_LVL_ALL,"Cannot allocate interrupt urb");
       		                                                                                ^
      
      WARNING: line over 80 characters
      +								psIntfAdapter->ulInterruptData;
      
      WARNING: line over 80 characters
      +							sizeof(psIntfAdapter->ulInterruptData);
      
      WARNING: line over 80 characters
      +						psIntfAdapter->sIntrIn.int_in_endpointAddr);
      
      WARNING: line over 80 characters
      +					psIntfAdapter->psInterruptUrb->transfer_buffer,
      
      WARNING: line over 80 characters
      +					psIntfAdapter->psInterruptUrb->transfer_buffer_length,
      
      WARNING: line over 80 characters
      +	BCM_DEBUG_PRINT(psIntfAdapter->psAdapter,DBG_TYPE_OTHERS, INTF_INIT, DBG_LVL_ALL,"Interrupt Interval: %d\n",
      
      ERROR: space required after that ',' (ctx:VxV)
      +	BCM_DEBUG_PRINT(psIntfAdapter->psAdapter,DBG_TYPE_OTHERS, INTF_INIT, DBG_LVL_ALL,"Interrupt Interval: %d\n",
       	                                        ^
      
      ERROR: space required after that ',' (ctx:VxV)
      +	BCM_DEBUG_PRINT(psIntfAdapter->psAdapter,DBG_TYPE_OTHERS, INTF_INIT, DBG_LVL_ALL,"Interrupt Interval: %d\n",
       	                                                                                ^
      
      ERROR: that open brace { should be on the previous line
      +	if( false == psIntfAdapter->psAdapter->device_removed &&
      +		false == psIntfAdapter->psAdapter->bEndPointHalted &&
      +		false == psIntfAdapter->bSuspended &&
      +		false == psIntfAdapter->bPreparingForBusSuspend &&
      +		false == psIntfAdapter->psAdapter->StopAllXaction)
      +	{
      
      ERROR: space prohibited after that open parenthesis '('
      +	if( false == psIntfAdapter->psAdapter->device_removed &&
      
      ERROR: space required before the open parenthesis '('
      +	if( false == psIntfAdapter->psAdapter->device_removed &&
      
      WARNING: line over 80 characters
      +		status = usb_submit_urb(psIntfAdapter->psInterruptUrb, GFP_ATOMIC);
      
      ERROR: that open brace { should be on the previous line
      +		if (status)
      +		{
      
      WARNING: line over 80 characters
      +			BCM_DEBUG_PRINT(psIntfAdapter->psAdapter,DBG_TYPE_OTHERS, INTF_INIT, DBG_LVL_ALL,"Cannot send int urb %d\n", status);
      
      ERROR: space required after that ',' (ctx:VxV)
      +			BCM_DEBUG_PRINT(psIntfAdapter->psAdapter,DBG_TYPE_OTHERS, INTF_INIT, DBG_LVL_ALL,"Cannot send int urb %d\n", status);
       			                                        ^
      
      ERROR: space required after that ',' (ctx:VxV)
      +			BCM_DEBUG_PRINT(psIntfAdapter->psAdapter,DBG_TYPE_OTHERS, INTF_INIT, DBG_LVL_ALL,"Cannot send int urb %d\n", status);
       			                                                                                ^
      
      ERROR: that open brace { should be on the previous line
      +			if(status == -EPIPE)
      +			{
      
      ERROR: space required before the open parenthesis '('
      +			if(status == -EPIPE)
      
      WARNING: line over 80 characters
      +				psIntfAdapter->psAdapter->bEndPointHalted = TRUE ;
      
      WARNING: space prohibited before semicolon
      +				psIntfAdapter->psAdapter->bEndPointHalted = TRUE ;
      
      WARNING: line over 80 characters
      +				wake_up(&psIntfAdapter->psAdapter->tx_packet_wait_queue);
      Signed-off-by: default avatarJade Bilkey <herself@thefumon.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      6a259d9b
    • Jade Bilkey's avatar
      staging: bcm: Cleanup switch statement · 94e74333
      Jade Bilkey authored
      Fixes checkpatch.pl warnings and errors:
      
      ERROR: switch and case should be at the same indent
      +	switch (status) {
      [...]
      +	    case STATUS_SUCCESS:
      [...]
      +		case -ENOENT :
      [...]
      +		case -EINPROGRESS:
      [...]
      +		case -EPIPE:
      [...]
      +	    case -ECONNRESET: //URB got unlinked.
      +	    case -ESHUTDOWN:		// hardware gone. this is the serious problem.
      [...]
      +	    case -ENODEV : //Device got removed
      +		case -EINVAL : //Some thing very bad happened with the URB. No description is available.
      [...]
      +	    default:
      
      ERROR: that open brace { should be on the previous line
      +		if ( urb->actual_length )
      +		{
      
      ERROR: space prohibited after that open parenthesis '('
      +		if ( urb->actual_length )
      
      ERROR: space prohibited before that close parenthesis ')'
      +		if ( urb->actual_length )
      
      ERROR: that open brace { should be on the previous line
      +			if(psIntfAdapter->ulInterruptData[1] & 0xFF)
      +			{
      
      ERROR: space required before the open parenthesis '('
      +			if(psIntfAdapter->ulInterruptData[1] & 0xFF)
      
      WARNING: line over 80 characters
      +				BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, INTF_INIT, DBG_LVL_ALL, "Got USIM interrupt");
      
      ERROR: space required after that ',' (ctx:VxV)
      +				BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, INTF_INIT, DBG_LVL_ALL, "Got USIM interrupt");
       				                       ^
      ERROR: that open brace { should be on the previous line
      +			if(psIntfAdapter->ulInterruptData[1] & 0xFF00)
      +			{
      
      ERROR: space required before the open parenthesis '('
      +			if(psIntfAdapter->ulInterruptData[1] & 0xFF00)
      
      WARNING: line over 80 characters
      +					(psIntfAdapter->ulInterruptData[1] & 0xFF00) >> 8);
      
      WARNING: space prohibited between function name and open parenthesis '('
      +				atomic_set (&Adapter->uiMBupdate, TRUE);
      
      WARNING: line over 80 characters
      +				BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, INTF_INIT, DBG_LVL_ALL, "TX mailbox contains %d",
      
      ERROR: space required after that ',' (ctx:VxV)
      +				BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, INTF_INIT, DBG_LVL_ALL, "TX mailbox contains %d",
       				                       ^
      +					atomic_read(&Adapter->CurrNumFreeTxDesc));
      
      ERROR: that open brace { should be on the previous line
      +			if(psIntfAdapter->ulInterruptData[1] >> 16)
      +			{
      
      ERROR: space required before the open parenthesis '('
      +			if(psIntfAdapter->ulInterruptData[1] >> 16)
      
      ERROR: spaces required around that '=' (ctx:VxE)
      +				Adapter->CurrNumRecvDescs=
       				                         ^
      
      WARNING: line over 80 characters
      +					(psIntfAdapter->ulInterruptData[1]  >> 16);
      +				BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, INTF_INIT, DBG_LVL_ALL,"RX mailbox contains %d",
      
      ERROR: space required after that ',' (ctx:VxV)
      +				BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, INTF_INIT, DBG_LVL_ALL,"RX mailbox contains %d",
       				                       ^
      
      ERROR: space required after that ',' (ctx:VxV)
      +				BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, INTF_INIT, DBG_LVL_ALL,"RX mailbox contains %d",
       				                                                               ^
      
      ERROR: that open brace { should be on the previous line
      +			if(Adapter->fw_download_done &&
      +				!Adapter->downloadDDR &&
      +				atomic_read(&Adapter->CurrNumFreeTxDesc))
      +			{
      
      ERROR: space required before the open parenthesis '('
      +			if(Adapter->fw_download_done &&
      
      ERROR: spaces required around that '+=' (ctx:WxV)
      +				psIntfAdapter->psAdapter->downloadDDR +=1;
       				                                      ^
      
      ERROR: that open brace { should be on the previous line
      +			if(false == Adapter->waiting_to_fw_download_done)
      +			{
      
      ERROR: space required before the open parenthesis '('
      +			if(false == Adapter->waiting_to_fw_download_done)
      
      ERROR: that open brace { should be on the previous line
      +			if(!atomic_read(&Adapter->TxPktAvail))
      +			{
      
      ERROR: space required before the open parenthesis '('
      +			if(!atomic_read(&Adapter->TxPktAvail))
      
      WARNING: line over 80 characters
      +			BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, INTF_INIT, DBG_LVL_ALL,"Firing interrupt in URB");
      
      ERROR: space required after that ',' (ctx:VxV)
      +			BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, INTF_INIT, DBG_LVL_ALL,"Firing interrupt in URB");
       			                       ^
      
      ERROR: space required after that ',' (ctx:VxV)
      +			BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, INTF_INIT, DBG_LVL_ALL,"Firing interrupt in URB");
       			                                                               ^
      
      ERROR: space prohibited before that ':' (ctx:WxE)
      +		case -ENOENT :
       		             ^
      
      WARNING: line over 80 characters
      +			BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, INTF_INIT, DBG_LVL_ALL,"URB has got disconnected ....");
      
      ERROR: space required after that ',' (ctx:VxV)
      +			BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, INTF_INIT, DBG_LVL_ALL,"URB has got disconnected ....");
       			                       ^
      
      ERROR: space required after that ',' (ctx:VxV)
      +			BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, INTF_INIT, DBG_LVL_ALL,"URB has got disconnected ....");
       			                                                               ^
      
      WARNING: space prohibited before semicolon
      +			return ;
      
      WARNING: line over 80 characters
      +			//This situation may happened when URBunlink is used. for detail check usb_unlink_urb documentation.
      
      ERROR: do not use C99 // comments
      +			//This situation may happened when URBunlink is used. for detail check usb_unlink_urb documentation.
      
      WARNING: line over 80 characters
      +			BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, INTF_INIT, DBG_LVL_ALL,"Impossibe condition has occurred... something very bad is going on");
      
      ERROR: space required after that ',' (ctx:VxV)
      +			BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, INTF_INIT, DBG_LVL_ALL,"Impossibe condition has occurred... something very bad is going on");
       			                       ^
      
      ERROR: space required after that ',' (ctx:VxV)
      +			BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, INTF_INIT, DBG_LVL_ALL,"Impossibe condition has occurred... something very bad is going on");
       			                                                               ^
      
      WARNING: space prohibited before semicolon
      +			break ;
      
      ERROR: do not use C99 // comments
      +			//return;
      
      WARNING: line over 80 characters
      +				BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, INTF_INIT, DBG_LVL_ALL,"Interrupt IN endPoint  has got halted/stalled...need to clear this");
      
      ERROR: space required after that ',' (ctx:VxV)
      +				BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, INTF_INIT, DBG_LVL_ALL,"Interrupt IN endPoint  has got halted/stalled...need to clear this");
       				                       ^
      
      ERROR: space required after that ',' (ctx:VxV)
      +				BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, INTF_INIT, DBG_LVL_ALL,"Interrupt IN endPoint  has got halted/stalled...need to clear this");
       				                                                               ^
      
      WARNING: space prohibited before semicolon
      +				Adapter->bEndPointHalted = TRUE ;
      
      WARNING: space prohibited before semicolon
      +				urb->status = STATUS_SUCCESS ;
      
      ERROR: do not use C99 // comments
      +	    case -ECONNRESET: //URB got unlinked.
      
      WARNING: line over 80 characters
      +	    case -ESHUTDOWN:		// hardware gone. this is the serious problem.
      
      ERROR: do not use C99 // comments
      +	    case -ESHUTDOWN:		// hardware gone. this is the serious problem.
      
      WARNING: line over 80 characters
      +	    						//Occurs only when something happens with the host controller device
      
      ERROR: code indent should use tabs where possible
      +^I    ^I^I^I^I^I^I//Occurs only when something happens with the host controller device$
      
      WARNING: please, no space before tabs
      +^I    ^I^I^I^I^I^I//Occurs only when something happens with the host controller device$
      
      ERROR: do not use C99 // comments
      +	    						//Occurs only when something happens with the host controller device
      
      ERROR: do not use C99 // comments
      +	    case -ENODEV : //Device got removed
      
      ERROR: space prohibited before that ':' (ctx:WxW)
      +	    case -ENODEV : //Device got removed
       	                 ^
      
      WARNING: line over 80 characters
      +		case -EINVAL : //Some thing very bad happened with the URB. No description is available.
      
      ERROR: do not use C99 // comments
      +		case -EINVAL : //Some thing very bad happened with the URB. No description is available.
      
      ERROR: space prohibited before that ':' (ctx:WxW)
      +		case -EINVAL : //Some thing very bad happened with the URB. No description is available.
       		             ^
      
      WARNING: line over 80 characters
      +	    	BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, INTF_INIT, DBG_LVL_ALL,"interrupt urb error %d", status);
      
      ERROR: code indent should use tabs where possible
      +^I    ^IBCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, INTF_INIT, DBG_LVL_ALL,"interrupt urb error %d", status);$
      
      WARNING: please, no space before tabs
      +^I    ^IBCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, INTF_INIT, DBG_LVL_ALL,"interrupt urb error %d", status);$
      
      ERROR: space required after that ',' (ctx:VxV)
      +	    	BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, INTF_INIT, DBG_LVL_ALL,"interrupt urb error %d", status);
       	    	                       ^
      
      ERROR: space required after that ',' (ctx:VxV)
      +	    	BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, INTF_INIT, DBG_LVL_ALL,"interrupt urb error %d", status);
       	    	                                                               ^
      
      WARNING: space prohibited before semicolon
      +			urb->status = STATUS_SUCCESS ;
      
      WARNING: space prohibited before semicolon
      +			break ;
      
      ERROR: do not use C99 // comments
      +			//return;
      
      ERROR: spaces required around that ':' (ctx:VxE)
      +	    default:
       	           ^
      
      WARNING: line over 80 characters
      +			//This is required to check what is the defaults conditions when it occurs..
      
      ERROR: do not use C99 // comments
      +			//This is required to check what is the defaults conditions when it occurs..
      
      WARNING: line over 80 characters
      +			BCM_DEBUG_PRINT(Adapter,DBG_TYPE_TX, NEXT_SEND, DBG_LVL_ALL,"GOT DEFAULT INTERRUPT URB STATUS :%d..Please Analyze it...", status);
      
      ERROR: space required after that ',' (ctx:VxV)
      +			BCM_DEBUG_PRINT(Adapter,DBG_TYPE_TX, NEXT_SEND, DBG_LVL_ALL,"GOT DEFAULT INTERRUPT URB STATUS :%d..Please Analyze it...", status);
       			                       ^
      
      ERROR: space required after that ',' (ctx:VxV)
      +			BCM_DEBUG_PRINT(Adapter,DBG_TYPE_TX, NEXT_SEND, DBG_LVL_ALL,"GOT DEFAULT INTERRUPT URB STATUS :%d..Please Analyze it...", status);
       			                                                           ^
      Signed-off-by: default avatarJade Bilkey <herself@thefumon.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      94e74333
    • Jade Bilkey's avatar
      staging: bcm: Cleanup real_int_callback() · 54585d5e
      Jade Bilkey authored
      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: default avatarJade Bilkey <herself@thefumon.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      54585d5e
    • Jade Bilkey's avatar
      staging: bcm: Fix checkpatch errors · 9cb516bd
      Jade Bilkey authored
      This patch fixes the following checkpatch errors:
      
      ERROR: space prohibited after that '&' (ctx:WxW)
      +			memcpy((PVOID) & pstHostMibs->
       			               ^
      
      ERROR: space prohibited after that '&' (ctx:WxW)
      +			       (PVOID) & Adapter->
       			               ^
      
      ERROR: space prohibited after that '&' (ctx:WxW)
      +			memcpy((PVOID) & pstHostMibs->astSFtable[nSfIndex],
       			               ^
      
      ERROR: space prohibited after that '&' (ctx:WxW)
      +			       (PVOID) & Adapter->PackInfo[nSfIndex],
       			               ^
      Signed-off-by: default avatarJade Bilkey <herself@thefumon.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      9cb516bd