staging: Remove unnecessary OOM messages
authorJoe Perches <joe@perches.com>
Mon, 11 Feb 2013 17:41:29 +0000 (09:41 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 11 Feb 2013 18:10:33 +0000 (10:10 -0800)
commit78110bb8dc4a7ff331bfa3cfe7d4e287cfb3f22b
tree6534f66eb765163602ad1af98c651bea6ae09416
parentad463ac42771a0bb8a706cf8a985788fe5f5c1c6
staging: Remove unnecessary OOM messages

alloc failures already get standardized OOM
messages and a dump_stack.

For the affected mallocs around these OOM messages:

Converted kzallocs with multiplies to kcalloc.
Converted kmallocs with multiplies to kmalloc_array.
Converted a kmalloc/strlen/strncpy to kstrdup.
Moved a spin_lock below a removed OOM message and
removed a now unnecessary spin_unlock.
Neatened alignment and whitespace.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
53 files changed:
drivers/staging/asus_oled/asus_oled.c
drivers/staging/bcm/InterfaceInit.c
drivers/staging/ced1401/usb1401.c
drivers/staging/comedi/drivers.c
drivers/staging/comedi/drivers/amplc_dio200.c
drivers/staging/comedi/drivers/comedi_bond.c
drivers/staging/comedi/drivers/dt9812.c
drivers/staging/comedi/drivers/ni_labpc.c
drivers/staging/comedi/drivers/pcmuio.c
drivers/staging/comedi/drivers/unioxx5.c
drivers/staging/comedi/drivers/usbdux.c
drivers/staging/comedi/drivers/usbduxfast.c
drivers/staging/comedi/drivers/usbduxsigma.c
drivers/staging/cptm1217/clearpad_tm1217.c
drivers/staging/et131x/et131x.c
drivers/staging/frontier/alphatrack.c
drivers/staging/frontier/tranzport.c
drivers/staging/ft1000/ft1000-usb/ft1000_usb.c
drivers/staging/gdm72xx/gdm_sdio.c
drivers/staging/gdm72xx/sdio_boot.c
drivers/staging/gdm72xx/usb_boot.c
drivers/staging/iio/accel/lis3l02dq_ring.c
drivers/staging/keucr/usb.c
drivers/staging/line6/driver.c
drivers/staging/line6/pcm.c
drivers/staging/omapdrm/omap_connector.c
drivers/staging/omapdrm/omap_crtc.c
drivers/staging/omapdrm/omap_dmm_tiler.c
drivers/staging/omapdrm/omap_drv.c
drivers/staging/omapdrm/omap_encoder.c
drivers/staging/omapdrm/omap_fb.c
drivers/staging/omapdrm/omap_fbdev.c
drivers/staging/omapdrm/omap_gem.c
drivers/staging/omapdrm/omap_plane.c
drivers/staging/rtl8187se/ieee80211/ieee80211_module.c
drivers/staging/rtl8187se/ieee80211/ieee80211_rx.c
drivers/staging/sbe-2t3e3/dc.c
drivers/staging/sbe-2t3e3/module.c
drivers/staging/sep/sep_crypto.c
drivers/staging/sep/sep_main.c
drivers/staging/speakup/selection.c
drivers/staging/ste_rmi4/synaptics_i2c_rmi4.c
drivers/staging/tidspbridge/pmgr/dspapi.c
drivers/staging/tidspbridge/rmgr/proc.c
drivers/staging/usbip/stub_dev.c
drivers/staging/usbip/stub_rx.c
drivers/staging/usbip/stub_tx.c
drivers/staging/usbip/vhci_hcd.c
drivers/staging/vme/devices/vme_pio2_core.c
drivers/staging/vme/devices/vme_pio2_gpio.c
drivers/staging/vme/devices/vme_user.c
drivers/staging/zcache/zcache-main.c
drivers/staging/zram/zram_drv.c