linux-2.6-microblaze.git
9 years agostaging: lustre: lustre: obdclass: Fixed space checkpatch
Sakshi Vaid [Thu, 10 Sep 2015 17:05:10 +0000 (22:35 +0530)]
staging: lustre: lustre: obdclass: Fixed space checkpatch

Removed the space between function name and open parenthesis '('.

Signed-off-by: Sakshi Vaid <sakshivaid95@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agoStaging: lustre: ptlrpc: Prefer using the BIT macro
Shraddha Barke [Thu, 10 Sep 2015 16:32:40 +0000 (22:02 +0530)]
Staging: lustre: ptlrpc: Prefer using the BIT macro

This patch replaces bit shifting on 1 with the BIT(x) macro

This was done with coccinelle:
@@ int g; @@

-(1 << g)
+BIT(g)

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agoStaging: lustre: libcfs: Prefer using the BIT macro
Shraddha Barke [Thu, 10 Sep 2015 16:30:31 +0000 (22:00 +0530)]
Staging: lustre: libcfs: Prefer using the BIT macro

This patch replaces bit shifting on 1 with the BIT(x) macro

This was done with coccinelle:
@@ int g; @@

-(1 << g)
+BIT(g)

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging/rtl8712 : Remove duplicated BIT() definitions
Anish Bhatt [Wed, 9 Sep 2015 22:57:10 +0000 (15:57 -0700)]
staging/rtl8712 : Remove duplicated BIT() definitions

The BIT() macro is already defined in bitops.h,
remove duplicate definitions.

Signed-off-by: Anish Bhatt <anish@chelsio.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging/rtl8712 : Remove unused macro definitions.
Anish Bhatt [Wed, 9 Sep 2015 22:57:08 +0000 (15:57 -0700)]
staging/rtl8712 : Remove unused macro definitions.

WLAN_ETHHDR_LEN/WLAN_ETHADDR_LEN/WLAN_ADDR_LEN
 are unused, duplicate or unnecessary, remove.

Signed-off-by: Anish Bhatt <anish@chelsio.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging/rtl8188eu : Remove unused macro definitions.
Anish Bhatt [Wed, 9 Sep 2015 22:57:07 +0000 (15:57 -0700)]
staging/rtl8188eu : Remove unused macro definitions.

WLAN_ETHHDR_LEN/WLAN_ETHADDR_LEN/WLAN_ADDR_LEN
 are unused, duplicate or unnecessary, remove.

Signed-off-by: Anish Bhatt <anish@chelsio.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agoStaging: iio: addac: Prefer using the BIT macro
Shraddha Barke [Thu, 10 Sep 2015 16:30:29 +0000 (22:00 +0530)]
Staging: iio: addac: Prefer using the BIT macro

This patch replaces bit shifting on 1 with the BIT(x) macro.

This was done with coccinelle:

@@ int g; @@

-(1 << g)
+BIT(g)

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agoStaging: iio: meter: Prefer using the BIT macro
Shraddha Barke [Thu, 10 Sep 2015 16:30:30 +0000 (22:00 +0530)]
Staging: iio: meter: Prefer using the BIT macro

This patch replaces bit shifting on 1 with the BIT(x) macro

This was done with coccinelle:
@@ int g; @@

-(1 << g)
+BIT(g)

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agoStaging: iio: cdc: Prefer using the BIT macro
Shraddha Barke [Thu, 10 Sep 2015 16:32:39 +0000 (22:02 +0530)]
Staging: iio: cdc: Prefer using the BIT macro

This patch replaces bit shifting on 1 with the BIT(x) macro

This was done with coccinelle:
@@ int g; @@

-(1 << g)
+BIT(g)

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: coreconfigurator.c: remove unused functions
Glen Lee [Fri, 11 Sep 2015 03:04:20 +0000 (12:04 +0900)]
staging: wilc1000: coreconfigurator.c: remove unused functions

This patch removes following unused funtions which will not be used anymore.

ascii_hex_to_dec
get_hex_char
extract_mac_addr
create_mac_addr
conv_ip_to_int
conv_int_to_ip
get_wid_type
get_type
CreateConfigPacket
ConfigWaitResponse
ConfigProvideResponse
ConfigPktReceived
ParseWriteResponse
CreatePacketHeader
ParseResponse
ProcessBinWid
ProcessAdrWid
ProcessStrWid
ProcessIPwid
ProcessIntWid
ProcessShortWid
ProcessCharWid

As a result, four global variable causes defined but not used compile warnings.
So just remove unused varialbs g_seqno, g_wid_num, Res_Len and g_oper_mode.

Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: remove unused enum
Glen Lee [Thu, 10 Sep 2015 09:26:29 +0000 (18:26 +0900)]
staging: wilc1000: remove unused enum

This patch removes a unused enum tenuFrameClass.

Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: remove unused global variables
Tony Cho [Thu, 10 Sep 2015 09:26:28 +0000 (18:26 +0900)]
staging: wilc1000: remove unused global variables

This patch removes the followings from the driver because they are in
debugging purpose but not used anymore.
- int_clrd
- int_rcvdU
- int_rcvdB
- android_wifi_priv_cmd structure

Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: remove firmware definition
Tony Cho [Thu, 10 Sep 2015 09:26:27 +0000 (18:26 +0900)]
staging: wilc1000: remove firmware definition

This patch removes the firmware definitions, STA_FIRMWARE, AP_FIRMWARE, and
P2P_CONCURRENCY_FIRMWARE from the linux_wlan.c file because they are
defined in the Makefile.

Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: remove STATIC_MACADDRESS
Tony Cho [Thu, 10 Sep 2015 09:26:26 +0000 (18:26 +0900)]
staging: wilc1000: remove STATIC_MACADDRESS

This patch removes unused definition, STATIC_MACADDRESS from the
linux_wlan.c file.

Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agoStaging: wilc1000: Replace "#include <asm/uaccess>" with "#include <linux/uaccess>"
Shraddha Barke [Thu, 10 Sep 2015 03:33:01 +0000 (09:03 +0530)]
Staging: wilc1000: Replace "#include <asm/uaccess>" with "#include <linux/uaccess>"

Fix checkpatch.pl warning "Use #include <linux/uaccess.h>
instead of <asm/uaccess.h>"

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: delete wilc_memory.c and wilc_memory.h
Glen Lee [Thu, 10 Sep 2015 03:03:05 +0000 (12:03 +0900)]
staging: wilc1000: delete wilc_memory.c and wilc_memory.h

The macro WILC_MALLOC is not used in the driver anymore, so just
delete files.

Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: remove kmalloc wrapper
Glen Lee [Thu, 10 Sep 2015 03:03:04 +0000 (12:03 +0900)]
staging: wilc1000: remove kmalloc wrapper

This patch calls kmalloc() directly. No need to wrap kmalloc().
All is not holding a spin lock or in interrupt context. So use GFP_KERNEL
flag for kmalloc.

Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: remove BROKEN status
Tony Cho [Thu, 10 Sep 2015 02:59:11 +0000 (11:59 +0900)]
staging: wilc1000: remove BROKEN status

This patch removes BROKEN status from the Kconfig.

Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agoStaging: comedi: addi_apci_3120: Remove unnecessary if
Shraddha Barke [Mon, 7 Sep 2015 14:28:23 +0000 (19:58 +0530)]
Staging: comedi: addi_apci_3120: Remove unnecessary if

Remove the if condition, as the code inside the if condition is
commented and does not have any FIXME or TODO comment.

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: rtl8192u: r8192U_core: fix use ether_addr_copy() over memcpy() code style...
Raphaël Beamonte [Sun, 6 Sep 2015 02:15:12 +0000 (22:15 -0400)]
staging: rtl8192u: r8192U_core: fix use ether_addr_copy() over memcpy() code style issue

Prefer ether_addr_copy() over memcpy() if the Ethernet addresses
are __aligned(2)

The values used are stored as dev_addr in net_device (declared in
include/linux/netdevice.h) and sa_data in sockaddr (declared in
include/linux/socket.h). Both these elements are u16 aligned as
shown by using pahole (position must be a multiple of sizeof(u16)):
unsigned char *            dev_addr;             /*   888     8 */
char                       sa_data[14];          /*     2    14 */

It is thus safe to use ether_addr_copy() instead of memcpy() for
that call, as it is already done in multiple files in the Linux
kernel sources:
  drivers/net/ethernet/broadcom/genet/bcmgenet.c
  drivers/net/ethernet/brocade/bna/bnad.c
  drivers/net/ethernet/emulex/benet/be_main.c
  drivers/net/ethernet/ezchip/nps_enet.c
  drivers/net/ethernet/ibm/ibmveth.c
  drivers/net/ethernet/intel/fm10k/fm10k_netdev.c
  drivers/net/ethernet/intel/i40e/i40e_main.c
  drivers/net/ethernet/mellanox/mlx5/core/en_main.c
  drivers/net/usb/lan78xx.c
  net/8021q/vlan_dev.c
  net/batman-adv/soft-interface.c
  net/dsa/slave.c

Signed-off-by: Raphaël Beamonte <raphael.beamonte@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: gdm72xx: NULL comparison style
Sudip Mukherjee [Mon, 7 Sep 2015 12:38:22 +0000 (18:08 +0530)]
staging: gdm72xx: NULL comparison style

checkpatch complains if NULL comparison is done as if (var == NULL)

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: gdm72xx: fix memory leak
Sudip Mukherjee [Mon, 7 Sep 2015 12:38:21 +0000 (18:08 +0530)]
staging: gdm72xx: fix memory leak

We were successfully requesting the firmware but on error it was not
being released.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: fbtft: do not use magic numbers
Sudip Mukherjee [Sat, 5 Sep 2015 13:43:44 +0000 (19:13 +0530)]
staging: fbtft: do not use magic numbers

Using magic numbers are not good coding practise. Use
FBTFT_GPIO_NAME_SIZE as defined in the header files.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: fbtft: use strncpy instead of strcpy
Sudip Mukherjee [Sat, 5 Sep 2015 13:43:43 +0000 (19:13 +0530)]
staging: fbtft: use strncpy instead of strcpy

Using strcpy() is a security risk as the destination buffer size is not
checked and we may over-run the buffer. Use strncpy() instead, while
mentioning the buffer size leaving place for the NULL termination.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agoStaging: rtl8192e: rtl_wx.c: Remove braces for single statement blocks
Shraddha Barke [Sat, 5 Sep 2015 13:28:28 +0000 (18:58 +0530)]
Staging: rtl8192e: rtl_wx.c: Remove braces for single statement blocks

The linux kernel coding style discourages use of braces for single
statement blocks. This patch removes the unnecessary braces.

The warning was detected using checkpatch.pl. Coccinelle was used to
make the change.

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agoStaging: speakup: Remove braces for single statement blocks
Shraddha Barke [Sat, 5 Sep 2015 13:28:27 +0000 (18:58 +0530)]
Staging: speakup: Remove braces for single statement blocks

The linux kernel coding style discourages use of braces for single
statement blocks. This patch removes the unnecessary braces.

The warning was detected using checkpatch.pl. Coccinelle was used to
make the change.

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agoStaging: android: Remove unnecessary braces.
Shraddha Barke [Sat, 5 Sep 2015 13:28:26 +0000 (18:58 +0530)]
Staging: android: Remove unnecessary braces.

The linux kernel coding style discourages use of braces for single
statement blocks. This patch removes the unnecessary braces.

The warning was detected using checkpatch.pl. Coccinelle was used
to make the change.

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agoStaging: rtl8723au: hal: Remove braces for single statement blocks
Shraddha Barke [Sat, 5 Sep 2015 13:28:19 +0000 (18:58 +0530)]
Staging: rtl8723au: hal: Remove braces for single statement blocks

The linux kernel coding style discourages use of braces for single
statement blocks. This patch removes the unnecessary braces.

The error was detected using checkpatch.pl. Coccinelle was used
to make the change.

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging/wlan-ng : Remove duplicated defines from p80211
Anish Bhatt [Fri, 4 Sep 2015 21:00:30 +0000 (14:00 -0700)]
staging/wlan-ng : Remove duplicated defines from p80211

ETH_ALEN/ETH_HLEN can be  used instead of
WLAN_ETHADDR_LEN & WLAN_ETHHDR_LEN, replace directly or
use eth_addr* functions where applicable.

Signed-off-by: Anish Bhatt <anish@chelsio.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agoStaging: fsl-mc/bus: mc-bus.c: Fixed coding style issues
Nayeemahmed Badebade [Fri, 4 Sep 2015 17:00:33 +0000 (22:30 +0530)]
Staging: fsl-mc/bus: mc-bus.c: Fixed coding style issues

Fixed coding style issues where kernel types u16,u64,u32 should
be preferred over uint16_t,uint64_t,uint32_t

Signed-off-by: Nayeemahmed Badebade <itachi.opsrc@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: emxx_udc: Remove unused parameter from function parameter list parameter...
Ravi Teja Darbha [Tue, 8 Sep 2015 15:48:51 +0000 (21:18 +0530)]
staging: emxx_udc: Remove unused parameter from function parameter list parameter list

struct nbu2ss_ep *ep parameter in functions _nbu2ss_ep0_in_transfer()
and _nbu2ss_ep0_out_transfer() is not used anywhere inside. Hence,
removed.

Signed-off-by: Ravi Teja Darbha <ravi2j@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: emxx_udc: Remove cleanup1 label
Ravi Teja Darbha [Fri, 4 Sep 2015 19:38:29 +0000 (01:08 +0530)]
staging: emxx_udc: Remove cleanup1 label

The cleanup1 label does nothing but return. Better way is to return
immediately instead of using goto. Hence, removed.

Signed-off-by: Ravi Teja Darbha <ravi2j@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: emxx_udc: Fix NULL comparison style
Ravi Teja Darbha [Fri, 4 Sep 2015 08:18:22 +0000 (13:48 +0530)]
staging: emxx_udc: Fix NULL comparison style

Fixed NULL comparison style as suggested by checkpatch.pl

Signed-off-by: Ravi Teja Darbha <ravi2j@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: emxx_udc: Avoid using multiple blank lines
Ravi Teja Darbha [Fri, 4 Sep 2015 08:16:32 +0000 (13:46 +0530)]
staging: emxx_udc: Avoid using multiple blank lines

Fixed multiple blank lines warning by checkpatch.pl

Signed-off-by: Ravi Teja Darbha <ravi2j@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: emxx_udc: Remove FSF mailing address
Ravi Teja Darbha [Fri, 4 Sep 2015 07:59:52 +0000 (13:29 +0530)]
staging: emxx_udc: Remove FSF mailing address

FSF mailing address is no longer required to be specified. Hence
removed.

Signed-off-by: Ravi Teja Darbha <ravi2j@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: lustre: lov: remove always false condition
Sudip Mukherjee [Tue, 8 Sep 2015 16:23:02 +0000 (21:53 +0530)]
staging: lustre: lov: remove always false condition

The member qc_idx of struct if_quotactl is unsigned and hence it can
never be less than zero.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: lustre: lov: fix dereference of ERR_PTR
Sudip Mukherjee [Tue, 8 Sep 2015 16:23:01 +0000 (21:53 +0530)]
staging: lustre: lov: fix dereference of ERR_PTR

If lov_sub_get() fails then it returns the error code in ERR_PTR, but
here we were dereferencing sub without checking if lov_sub_get() has
actually succeeded or not. And on error we can directly return the error
code from lov_io_fault_start() as it return 0 on success and the error
code on error.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: lustre: ptlrpc: include ptlrpc_internal.h
Anders Fridlund [Mon, 7 Sep 2015 22:56:48 +0000 (00:56 +0200)]
staging: lustre: ptlrpc: include ptlrpc_internal.h

Remove sparse warning "symbol 'sptlrpc_plain_init' was not declared"
by including ptlrpc_internal.h, which includes sptlrpc_plain_init.

Signed-off-by: Anders Fridlund <anders.fridlund@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: lustre: use linux/statfs.h instead of asm/statfs.h
Mike Rapoport [Mon, 7 Sep 2015 13:05:15 +0000 (16:05 +0300)]
staging: lustre: use linux/statfs.h instead of asm/statfs.h

Fix the following checkpatch warning:

drivers/staging/lustre/lustre/include/linux/lustre_lite.h:46:
WARNING:INCLUDE_LINUX: Use #include <linux/statfs.h> instead of <asm/statfs.h>

Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: lustre/obdclass/linux/linux-module.c
Matthew Needes [Sat, 5 Sep 2015 20:03:38 +0000 (13:03 -0700)]
staging: lustre/obdclass/linux/linux-module.c

Fixed sparse warning by removing unused variable "proc_version".

Signed-off-by: Matthew Needes <mneedes@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agoStaging: lustre: lnet: Remove braces for single statement blocks
Shraddha Barke [Sat, 5 Sep 2015 13:28:25 +0000 (18:58 +0530)]
Staging: lustre: lnet: Remove braces for single statement blocks

The linux kernel coding style discourages use of braces for single
statement blocks. This patch removes the unnecessary braces.

The warning was detected using checkpatch.pl. Coccinelle was used
to make the change.

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agoStaging: lustre: llite: llite_lib.c: Remove unnecessary braces
Shraddha Barke [Sat, 5 Sep 2015 13:28:24 +0000 (18:58 +0530)]
Staging: lustre: llite: llite_lib.c: Remove unnecessary braces

The linux kernel coding style discourages use of braces for single
statement blocks. This patch removes the unnecessary braces.

The warning was detected using checkpatch.pl. Coccinelle was used to
make the change.

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agoStaging: lustre: llite: llite_close.c: Remove unnecessary braces
Shraddha Barke [Sat, 5 Sep 2015 13:28:23 +0000 (18:58 +0530)]
Staging: lustre: llite: llite_close.c: Remove unnecessary braces

The linux kernel coding style discourages use of braces for single
statement blocks. This patch removes the unnecessary braces.

The warning was detected using checkpatch.pl. Coccinelle was used to
make the change.

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agoStaging: lustre: obdclass: Remove braces for single statement blocks
Shraddha Barke [Sat, 5 Sep 2015 13:28:22 +0000 (18:58 +0530)]
Staging: lustre: obdclass: Remove braces for single statement blocks

The linux kernel coding style discourages use of braces for single
statement blocks. This patch removes the unnecessary braces.

The warning was detected using checkpatch.pl. Coccinelle was used to
make the change.

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agoStaging: lustre: libcfs: Remove braces for single statement blocks
Shraddha Barke [Sat, 5 Sep 2015 13:28:21 +0000 (18:58 +0530)]
Staging: lustre: libcfs: Remove braces for single statement blocks

The linux kernel coding style discourages use of braces for single
statement blocks. This patch removes the unnecessary braces.

The warning was detected using checkpatch.pl. Coccinelle was used to
make the change.

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agoStaging: lustre: ptlrpc: Remove braces for single statement blocks
Shraddha Barke [Sat, 5 Sep 2015 13:28:20 +0000 (18:58 +0530)]
Staging: lustre: ptlrpc: Remove braces for single statement blocks

The linux kernel coding style discourages use of braces for single
statement blocks. This patch removes the unnecessary braces.

The warning was detected using checkpatch.pl. Coccinelle was used to
make the change.

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agoStaging: lustre: osc: Space prohibited between function name and open parenthesis
Shraddha Barke [Fri, 4 Sep 2015 06:38:49 +0000 (12:08 +0530)]
Staging: lustre: osc: Space prohibited between function name and open parenthesis

This patch fixes the checkpatch.pl warning:

WARNING: space prohibited between function name and open parenthesis '('

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agoStaging: lustre: obdclass: Insert blank line from declarations
Shraddha Barke [Fri, 4 Sep 2015 06:38:48 +0000 (12:08 +0530)]
Staging: lustre: obdclass: Insert blank line from declarations

This patch fixes the checkpatch.pl warning

WARNING: Missing a blank line after declarations

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agoStaging: lustre: obdclass: Remove unnecessary return statements
Shraddha Barke [Fri, 4 Sep 2015 06:38:47 +0000 (12:08 +0530)]
Staging: lustre: obdclass: Remove unnecessary return statements

This patch removes return statement which are not required.
The warning was detected by checkpatch.pl

WARNING: void function return statements are not generally useful

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agoStaging: lustre: mdc: Remove useless cast on void pointer
Shraddha Barke [Fri, 4 Sep 2015 06:38:45 +0000 (12:08 +0530)]
Staging: lustre: mdc: Remove useless cast on void pointer

void pointers do not need to be cast to other pointer types.

The semantic patch used to find this:

@r@
expression x;
void* e;
type T;
identifier f;
@@
(
  *((T *)e)
|
  ((T *)x)[...]
|
  ((T *)x)->f
|
- (T *)
  e
)

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agoStaging: lustre: lnet: Remove useless cast on void pointer
Shraddha Barke [Fri, 4 Sep 2015 06:38:44 +0000 (12:08 +0530)]
Staging: lustre: lnet: Remove useless cast on void pointer

void pointers do not need to be cast to other pointer types.

The semantic patch used to find this:

@r@
expression x;
void* e;
type T;
identifier f;
@@
(
  *((T *)e)
|
  ((T *)x)[...]
|
  ((T *)x)->f
|
- (T *)
  e
)

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agoStaging: lustre: obdclass: Use kasprintf instead of kzalloc and sprintf
Shraddha Barke [Fri, 4 Sep 2015 06:38:42 +0000 (12:08 +0530)]
Staging: lustre: obdclass: Use kasprintf instead of kzalloc and sprintf

This patch uses kasprintf which combines kzalloc and sprintf.

kasprintf also takes care of the size calculation.

Semantic patch used is as follows:

@@
expression a,flag;
expression list args;
statement S;
@@

 a =
- \(kmalloc\|kzalloc\)(...,flag)
+ kasprintf (flag,args)
  <... when != a
  if (a == NULL || ...) S
  ...>
- sprintf(a,args);

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agoStaging: lustre: obdclass: Remove typedefs for struct
Shraddha Barke [Fri, 4 Sep 2015 06:38:41 +0000 (12:08 +0530)]
Staging: lustre: obdclass: Remove typedefs for struct

The Linux kernel coding style guidelines suggest not using typedefs for
structure and enum types. This patch gets rid of the typedefs for
lu_site_stats_t.

The following Coccinelle semantic patch detects the cases for struct type:

@tn@
identifier i;
type td;
@@

-typedef
 struct i { ... }
-td
 ;

@@
type tn.td;
identifier tn.i;
@@

-td
+ struct i

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agoStaging: lustre: libcfs: Remove typedefs for struct
Shraddha Barke [Fri, 4 Sep 2015 06:38:40 +0000 (12:08 +0530)]
Staging: lustre: libcfs: Remove typedefs for struct

The Linux kernel coding style guidelines suggest not using typedefs for
structure and enum types. This patch gets rid of the typedefs for
cfs_wi_sched_t.

The following Coccinelle semantic patch detects the cases for struct type:

@tn@
identifier i;
type td;
@@

-typedef
 struct i { ... }
-td
 ;

@@
type tn.td;
identifier tn.i;
@@

-td
+ struct i

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: remove unused PLAT_RK3026_TCHIP
Leo Kim [Wed, 9 Sep 2015 07:08:13 +0000 (16:08 +0900)]
staging: wilc1000: remove unused PLAT_RK3026_TCHIP

This patch removes the preprocessor definition, PLAT_RK3026_TCHIP which
is not used anymore.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: delete definition USE_WIRELESS
Kim, Leo [Tue, 8 Sep 2015 08:08:03 +0000 (17:08 +0900)]
staging: wilc1000: delete definition USE_WIRELESS

The preprocessor definition, USE_WIRELESS is always in use.
So, this patch deletes the definitions from the makefile and source codes.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: remove unused NM73131_0_BOARD
Kim, Leo [Tue, 8 Sep 2015 08:08:02 +0000 (17:08 +0900)]
staging: wilc1000: remove unused NM73131_0_BOARD

This patch removes the preprocessor definition, NM73131_0_BOARD which is
not used anymore.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: add maintainers for Atmel 802.11 driver
Tony Cho [Tue, 8 Sep 2015 08:08:01 +0000 (17:08 +0900)]
staging: wilc1000: add maintainers for Atmel 802.11 driver

This patch adds new maintainers who develops new design for Atmel 802.11
link controller and deletes Dean Lee who cannot maintain the wireless
driver anymore.

Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: remove meaningless line
Johnny Kim [Tue, 8 Sep 2015 08:08:00 +0000 (17:08 +0900)]
staging: wilc1000: remove meaningless line

The current driver is calling skb_reserve function to align memory in
frmw_to_linux function. However, the wrong value is used as the input argument.
Besides, the process is not necessary because the address already is algined
in dev_alloc_skb function. So, this patch removes the line for dummy headroom.

Signed-off-by: Johnny Kim <johnny.kim@atmel.com>
Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: define undefined operation mode
Johnny Kim [Tue, 8 Sep 2015 08:07:59 +0000 (17:07 +0900)]
staging: wilc1000: define undefined operation mode

This patch adds new define, IDLE_MODE to change comparison statement which
is wrong due to typecasting to null.

Signed-off-by: Johnny Kim <johnny.kim@atmel.com>
Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: linux_wlan.c: add kzalloc error check
Chaehyun Lim [Mon, 7 Sep 2015 15:36:36 +0000 (00:36 +0900)]
staging: wilc1000: linux_wlan.c: add kzalloc error check

This patch adds error check if kzalloc is failed.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: wilc_msgqueue.c: use kmalloc with GFP_ATOMIC
Chaehyun Lim [Mon, 7 Sep 2015 15:36:38 +0000 (00:36 +0900)]
staging: wilc1000: wilc_msgqueue.c: use kmalloc with GFP_ATOMIC

This patch use kmalloc with GFP_ATOMIC instead of WILC_MALLOC.
It is inside the spin lock region.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: linux_wlan.c: use kzalloc instead of WILC_MALLOC
Chaehyun Lim [Mon, 7 Sep 2015 15:36:35 +0000 (00:36 +0900)]
staging: wilc1000: linux_wlan.c: use kzalloc instead of WILC_MALLOC

This patch replaces WILC_MALLOC with kzalloc.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: fix potential memory leak
Tony Cho [Mon, 7 Sep 2015 10:09:31 +0000 (19:09 +0900)]
staging: wilc1000: fix potential memory leak

This patch adds kfree(mgmt_tx) when memory allocation of mgmt_tx->buff
fails in the second calls of kmalloc() to avoid the memory leak from mgmt_tx
first allocated before the second calls of kmalloc().

Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Chris Park <chirs.park@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: remove unused preprocessor definition
Tony Cho [Mon, 7 Sep 2015 10:09:30 +0000 (19:09 +0900)]
staging: wilc1000: remove unused preprocessor definition

This patch removes a preprocessor definition, SWITCH_LOG_TERMINAL,
which is not used. Enabling this definition affects the performance.

Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: remove dead codes
Tony Cho [Mon, 7 Sep 2015 10:09:29 +0000 (19:09 +0900)]
staging: wilc1000: remove dead codes

This patch removes the preprocessor definition from the codes, as shown in the
following, which is not used anymore.
- WILC_FULLY_HOSTING_AP

Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: most: style of bool comparison
Sudip Mukherjee [Fri, 4 Sep 2015 10:52:06 +0000 (16:22 +0530)]
staging: most: style of bool comparison

BOOLEAN tests do not need any comparison to TRUE or FALSE.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: most: remove unneeded NULL check
Sudip Mukherjee [Fri, 4 Sep 2015 10:52:05 +0000 (16:22 +0530)]
staging: most: remove unneeded NULL check

The loop cursor of list_for_each_entry_safe() can never be NULL.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: most: remove driver owner
Sudip Mukherjee [Fri, 4 Sep 2015 10:52:04 +0000 (16:22 +0530)]
staging: most: remove driver owner

The platform driver core will set the owner value, we do not need to do
it in the module.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: most: return NULL instead of integer
Sudip Mukherjee [Fri, 4 Sep 2015 10:52:03 +0000 (16:22 +0530)]
staging: most: return NULL instead of integer

The return type of get_aim_dev() is a pointer but we were returning 0
incase of failure.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: most: remove always true comparison
Sudip Mukherjee [Fri, 4 Sep 2015 10:52:02 +0000 (16:22 +0530)]
staging: most: remove always true comparison

channel->dev has already been checked for NULL and if it was NULL then
we have returned with -EPIPE. So at this point it can not be NULL.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: unisys: documentation and TODO tweaks
Tim Sell [Fri, 4 Sep 2015 16:25:49 +0000 (12:25 -0400)]
staging: unisys: documentation and TODO tweaks

Update documentation (including TODO) to reflect the current state of
the drivers.

Signed-off-by: Tim Sell <Timothy.Sell@unisys.com>
Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: remove wrapper around usleep_range()
Greg Kroah-Hartman [Fri, 4 Sep 2015 16:30:51 +0000 (09:30 -0700)]
staging: wilc1000: remove wrapper around usleep_range()

Just call the function directly, no need for the indirection.

Cc: Johnny Kim <johnny.kim@atmel.com>
Cc: Rachel Kim <rachel.kim@atmel.com>
Cc: Dean Lee <dean.lee@atmel.com>
Cc: Chris Park <chris.park@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: fix freeing of ERR_PTR
Sudip Mukherjee [Fri, 4 Sep 2015 10:04:15 +0000 (15:34 +0530)]
staging: wilc1000: fix freeing of ERR_PTR

If memdup_user() fails then it will return the error code in ERR_PTR. We
were checking it with IS_ERR but then again trying to free it on the
error path.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: use id value as argument
Johnny Kim [Thu, 20 Aug 2015 07:32:52 +0000 (16:32 +0900)]
staging: wilc1000: use id value as argument

The driver communicates with the chipset via the address of handlers
to distinguish async data frame. The SendConfigPkt function gets the
pointer address indicating the handlers as the last argument, but this
requires redundant typecasting and does not support the 64 bit machine.

This patch adds the function which assigns ID values instead of pointer
representing the driver handler to the address and then uses the ID
instead of pointer as the last argument of SendConfigPkt. The driver
also gets the handler's address from the ID in the data frame when it
receives them.

Signed-off-by: Johnny Kim <johnny.kim@atmel.com>
Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: remove spinlock wrappers
Greg Kroah-Hartman [Fri, 4 Sep 2015 03:17:31 +0000 (20:17 -0700)]
staging: wilc1000: remove spinlock wrappers

Just call the spinlock functions directly, no need for the indirection.

Cc: Johnny Kim <johnny.kim@atmel.com>
Cc: Rachel Kim <rachel.kim@atmel.com>
Cc: Dean Lee <dean.lee@atmel.com>
Cc: Chris Park <chris.park@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: remove wrappers around semaphore usage
Greg Kroah-Hartman [Fri, 4 Sep 2015 03:07:58 +0000 (20:07 -0700)]
staging: wilc1000: remove wrappers around semaphore usage

Just call up/down directly, no need for a wrapper function that hides
what is really happening.  Fix up some variable types to be the correct
structure pointers, not void *.

Cc: Johnny Kim <johnny.kim@atmel.com>
Cc: Rachel Kim <rachel.kim@atmel.com>
Cc: Dean Lee <dean.lee@atmel.com>
Cc: Chris Park <chris.park@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: remove wrappers around sema_init()
Greg Kroah-Hartman [Fri, 4 Sep 2015 02:56:21 +0000 (19:56 -0700)]
staging: wilc1000: remove wrappers around sema_init()

Just call the function directly.  Also remove a pointless "deinit"
function that was empty to match the init function.

This also fixes a bug where txq_add_to_head_cs was a mutex structure
being used as a semaphore.  See the fun things that happen when you use
void pointers instead of "real" types?  Amazing that this worked at all,
someone got _very_ lucky.  Whoever "Amr" is, they really didn't fix
BugID_4720 correctly :(

Cc: Johnny Kim <johnny.kim@atmel.com>
Cc: Rachel Kim <rachel.kim@atmel.com>
Cc: Dean Lee <dean.lee@atmel.com>
Cc: Chris Park <chris.park@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: remove mutex_init/destroy() wrappers
Greg Kroah-Hartman [Fri, 4 Sep 2015 02:43:44 +0000 (19:43 -0700)]
staging: wilc1000: remove mutex_init/destroy() wrappers

Just call the real functions.

Cc: Johnny Kim <johnny.kim@atmel.com>
Cc: Rachel Kim <rachel.kim@atmel.com>
Cc: Dean Lee <dean.lee@atmel.com>
Cc: Chris Park <chris.park@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: remove wrapper around spin_lock_init()
Greg Kroah-Hartman [Fri, 4 Sep 2015 02:38:42 +0000 (19:38 -0700)]
staging: wilc1000: remove wrapper around spin_lock_init()

It's only called once, so just call the real function.  Also remove the
empty "deinit" function that didn't do anything.

Cc: Johnny Kim <johnny.kim@atmel.com>
Cc: Rachel Kim <rachel.kim@atmel.com>
Cc: Dean Lee <dean.lee@atmel.com>
Cc: Chris Park <chris.park@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: remove mutex_lock/unlock wrappers
Greg Kroah-Hartman [Fri, 4 Sep 2015 02:32:11 +0000 (19:32 -0700)]
staging: wilc1000: remove mutex_lock/unlock wrappers

Just call the functions directly.  Also fix the variable types to be
correct, not void *, so we have a semblance of type safety happening
now.

Cc: Johnny Kim <johnny.kim@atmel.com>
Cc: Rachel Kim <rachel.kim@atmel.com>
Cc: Dean Lee <dean.lee@atmel.com>
Cc: Chris Park <chris.park@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: remove mdelay wrapper
Greg Kroah-Hartman [Fri, 4 Sep 2015 02:09:50 +0000 (19:09 -0700)]
staging: wilc1000: remove mdelay wrapper

Just call the function, no need for a pointer to a function that calls
the function.

turtles, all the way down...

Cc: Johnny Kim <johnny.kim@atmel.com>
Cc: Rachel Kim <rachel.kim@atmel.com>
Cc: Dean Lee <dean.lee@atmel.com>
Cc: Chris Park <chris.park@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: remove pointless kfree wrapper
Greg Kroah-Hartman [Fri, 4 Sep 2015 02:04:19 +0000 (19:04 -0700)]
staging: wilc1000: remove pointless kfree wrapper

It isn't needed, and we were checking if a buffer was not NULL multiple
times, no one had ever looked at the code :(

Cc: Johnny Kim <johnny.kim@atmel.com>
Cc: Rachel Kim <rachel.kim@atmel.com>
Cc: Dean Lee <dean.lee@atmel.com>
Cc: Chris Park <chris.park@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: remove another useless kmalloc wrapper
Greg Kroah-Hartman [Fri, 4 Sep 2015 01:59:07 +0000 (18:59 -0700)]
staging: wilc1000: remove another useless kmalloc wrapper

A static function that just calls kmalloc(), and only used in one place.
It's obvious that the wrappers on wrappers in this driver have never
actually been reviewed...

Cc: Johnny Kim <johnny.kim@atmel.com>
Cc: Rachel Kim <rachel.kim@atmel.com>
Cc: Dean Lee <dean.lee@atmel.com>
Cc: Chris Park <chris.park@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: remove another pointless kmalloc wrapper
Greg Kroah-Hartman [Fri, 4 Sep 2015 01:55:43 +0000 (18:55 -0700)]
staging: wilc1000: remove another pointless kmalloc wrapper

Call kmalloc directly, don't make a special "atomic" function pointer to
call it instead.

Cc: Johnny Kim <johnny.kim@atmel.com>
Cc: Rachel Kim <rachel.kim@atmel.com>
Cc: Dean Lee <dean.lee@atmel.com>
Cc: Chris Park <chris.park@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: remove pointless kmalloc wrapper
Greg Kroah-Hartman [Fri, 4 Sep 2015 01:50:27 +0000 (18:50 -0700)]
staging: wilc1000: remove pointless kmalloc wrapper

just call kmalloc directly, don't use an indirect pointer to a wrapper
function.

Cc: Johnny Kim <johnny.kim@atmel.com>
Cc: Rachel Kim <rachel.kim@atmel.com>
Cc: Dean Lee <dean.lee@atmel.com>
Cc: Chris Park <chris.park@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: remove wilc_exported_buf.c
Greg Kroah-Hartman [Fri, 4 Sep 2015 01:44:19 +0000 (18:44 -0700)]
staging: wilc1000: remove wilc_exported_buf.c

The config option, CONFIG_WILC1000_PREALLOCATE_DURING_SYSTEM_BOOT, was
never able to be set, so this file was never being built.  Also, as
WILC_PREALLOC_AT_BOOT was never being set in the build system, remove
all code framed by that symbol.

Cc: Johnny Kim <johnny.kim@atmel.com>
Cc: Rachel Kim <rachel.kim@atmel.com>
Cc: Dean Lee <dean.lee@atmel.com>
Cc: Chris Park <chris.park@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: lustre: fix whitespace errors reported by checkpatch.pl
Mike Rapoport [Thu, 3 Sep 2015 08:49:13 +0000 (11:49 +0300)]
staging: lustre: fix whitespace errors reported by checkpatch.pl

Added/removed spaces and replaced '+1' with '1' in several places to
eliminate SPACING and POINTER_LOCATION errors reported by checkpatch.pl

Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging/wilc1000: Use %pM format specifier to print mac address
Alexander Kuleshov [Thu, 3 Sep 2015 18:48:14 +0000 (00:48 +0600)]
staging/wilc1000: Use %pM format specifier to print mac address

printk() supports %pM format specifier for printing 6-byte MAC/FDDI
addresses in hex notation small buffers, let's use it intead of %x:%x...

Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: ft1000_pcmcia: staticize local functions in ft1000_dnld.c
Mike Rapoport [Thu, 3 Sep 2015 17:50:51 +0000 (20:50 +0300)]
staging: ft1000_pcmcia: staticize local functions in ft1000_dnld.c

Several functions in ft1000_dnld.c are not used outside that file, make
them static

Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: comedi: kcomedilib: Fixed coding style issue
Nayeemahmed Badebade [Thu, 3 Sep 2015 17:44:35 +0000 (23:14 +0530)]
staging: comedi: kcomedilib: Fixed coding style issue

Fixed checkpatch.pl warning in kcomedilib_main.c:
 - Block comments use * on subsequent lines

Signed-off-by: Nayeemahmed Badebade <itachi.opsrc@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: goldfish: Prefer kernel type u32 over uint32_t
Ravi Teja Darbha [Wed, 2 Sep 2015 20:01:30 +0000 (01:31 +0530)]
staging: goldfish: Prefer kernel type u32 over uint32_t

Prefer kernel type u32 over uint32_t to maintain uniformity.

Signed-off-by: Ravi Teja Darbha <ravi2j@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: goldfish: Fix NULL comparison style
Ravi Teja Darbha [Wed, 2 Sep 2015 17:11:19 +0000 (22:41 +0530)]
staging: goldfish: Fix NULL comparison style

Fixed NULL comparison style as suggested by checkpatch.pl with --strict
option.

Signed-off-by: Ravi Teja Darbha <ravi2j@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: rtl8723au: remove unnecessary le32_to_cpu
Michał Bartoszkiewicz [Tue, 1 Sep 2015 23:35:00 +0000 (01:35 +0200)]
staging: rtl8723au: remove unnecessary le32_to_cpu

The values passed to le32_to_cpu are already in the correct byte order.
This fixes four "cast to restricted __le32" sparse warnings.

Signed-off-by: Michał Bartoszkiewicz <mbartoszkiewicz@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agoStaging: ste_rmi4: Remove unnecessary MODULE_ALIAS()
Javier Martinez Canillas [Sun, 30 Aug 2015 21:52:13 +0000 (23:52 +0200)]
Staging: ste_rmi4: Remove unnecessary MODULE_ALIAS()

The driver has a I2C device id table that is used to create the modaliases
which already contains "synaptics_rmi4_ts". So the alias is not needed.

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: rtl8723au: remove unimplemented function declarations
Luca Ceresoli [Thu, 27 Aug 2015 22:57:45 +0000 (00:57 +0200)]
staging: rtl8723au: remove unimplemented function declarations

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Acked-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Cc: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agoStaging: rtl8192e: r8192E_dev.c: Remove unused variable
Shraddha Barke [Sat, 22 Aug 2015 10:58:12 +0000 (16:28 +0530)]
Staging: rtl8192e: r8192E_dev.c: Remove unused variable

This patch discards the variable as it is not used anywhere throughout
the kernel.

Build tested it.

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agoStaging: rtl819u: ieee80211: Remove unused variable
Shraddha Barke [Sat, 22 Aug 2015 10:58:13 +0000 (16:28 +0530)]
Staging: rtl819u: ieee80211: Remove unused variable

This patch discards the variable count as it is not used anywhere
throughout the kernel.

Build tested it.

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agoStaging: rtl8723au: core: Remove unused variable
Shraddha Barke [Sat, 22 Aug 2015 10:58:14 +0000 (16:28 +0530)]
Staging: rtl8723au: core: Remove unused variable

This patch discards the variable as it is not used anywhere throughout
the kernel.

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agoStaging: rtl8192e: rtl_core.c: Remove unused variable
Shraddha Barke [Sat, 22 Aug 2015 10:58:11 +0000 (16:28 +0530)]
Staging: rtl8192e: rtl_core.c: Remove unused variable

This patch discards the variable ResetThreshold as it is not used
anywhere throughout the kernel.

Build tested it.

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>