2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-25 05:34:00 +08:00
linux-next/drivers/staging
Julia Lawall 18526c7896 Staging: rtl8192e: Drop unnecessary NULL test
The result of container_of should not be NULL.  In particular, in this case
the argument to the enclosing function has passed though INIT_WORK, which
dereferences it, implying that its container cannot be NULL.

A simplified version of the semantic patch that makes this change is as
follows:
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@@
identifier fn,work,x,fld;
type T;
expression E1,E2;
statement S;
@@

static fn(struct work_struct *work) {
  ... when != work = E1
  x = container_of(work,T,fld)
  ... when != x = E2
- if (x == NULL) S
  ...
}
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-09-15 12:02:33 -07:00
..
agnx Staging: agnx: remove flush_workqueue() 2009-09-15 12:02:29 -07:00
altpciechdma Staging: altpciechdma: 64bit type warning fix 2009-09-15 12:02:26 -07:00
android staging: Make some structures static 2009-09-15 12:02:24 -07:00
asus_oled Staging: asus_oled: fix build warnings 2009-06-19 11:00:55 -07:00
at76_usb Staging: at76_usb: replace mac2str() with %pM 2009-09-15 12:01:37 -07:00
b3dfg Staging: b3dfg: Drop NULL test on list_entry result 2009-09-15 12:01:40 -07:00
comedi Staging: comedi: apci3200: fix test of ui_DelayTime range in i_APCI3200_CommandTestAnalogInput() 2009-09-15 12:02:29 -07:00
cowloop Staging: cowloop: remove kernel version checks 2009-09-15 12:02:33 -07:00
cpc-usb Staging: cpc-usb: add one todo entry 2009-09-15 12:02:05 -07:00
dream staging: Make some structures static 2009-09-15 12:02:24 -07:00
dst Staging: dst: correct error-handling code 2009-09-15 12:02:06 -07:00
echo Staging: echo: coding style cleanups 2009-09-15 12:02:16 -07:00
et131x Staging: et131x: kill off the TXDMA CSR type 2009-09-15 12:02:29 -07:00
frontier Staging: remove unused #include <linux/version.h>'s 2009-06-19 11:00:36 -07:00
go7007 Fix staging drivers after smp_lock.h redux 2009-07-13 09:09:08 -07:00
heci staging: add dependencies on PCI for drivers that require it 2009-08-07 16:12:03 -07:00
hv Staging: hv: update the TODO file 2009-09-15 12:02:04 -07:00
iio Staging: iio: fix duplicate dev_attr_name 2009-09-15 12:02:26 -07:00
line6 Staging: ARRAY_SIZE changes 2009-09-15 12:02:06 -07:00
me4000 Staging: me4000: make file_operations const 2009-04-03 14:53:25 -07:00
meilhaus Staging: ARRAY_SIZE changes 2009-09-15 12:02:06 -07:00
mimio Staging: mimio: depends on INPUT 2009-04-03 14:53:29 -07:00
octeon netdev: drivers should make ethtool_ops const 2009-09-02 01:03:33 -07:00
otus staging: Make some structures static 2009-09-15 12:02:24 -07:00
p9auth staging: p9auth: prevent some oopses and memory leaks 2009-06-19 11:00:54 -07:00
panel Staging: panel: Add support for TI CLCD interface 2009-09-15 12:02:29 -07:00
phison Staging: phison: depends on PCI 2009-04-03 14:53:40 -07:00
poch Staging: poch: fix verification of memory area 2009-01-28 15:49:06 -08:00
pohmelfs Staging: pohmelfs: sync with the development tree 2009-09-15 12:02:30 -07:00
quatech_usb2 Staging: quatech_usb2: Improvements to set_termios method 2009-09-15 12:01:36 -07:00
rar Staging: rar/sep: Don't use random VENDOR_ID macros but the proper names 2009-09-15 12:02:12 -07:00
rspiusb Staging: rspiusb: Check usb_buffer_map_sg() retval 2009-09-15 12:02:29 -07:00
rt2860 Staging: rt{2860,2870,3070}sta: Remove unused CRC code 2009-09-15 12:02:24 -07:00
rt2870 Staging: rt2870: remove old firmware 2009-09-15 12:02:23 -07:00
rt3070 Staging: remove no longer needed rt3070 driver 2009-09-15 12:02:23 -07:00
rt3090 Staging: Correct use of ! and & 2009-09-15 12:02:06 -07:00
rtl8187se Staging: rtl8187se: Fix comment-out-typo 2009-09-15 12:02:17 -07:00
rtl8192e Staging: rtl8192e: Drop unnecessary NULL test 2009-09-15 12:02:33 -07:00
rtl8192su Staging: rtl8192su: add linux/vmalloc.h 2009-09-15 12:02:17 -07:00
sep Staging: sep: SEP driver build breaks with CONFIG_PCI=n 2009-09-15 12:02:15 -07:00
serqt_usb2 Staging: serqt_usb2: fix qt_open parameters 2009-09-15 12:02:06 -07:00
slicoss Staging: ARRAY_SIZE changes 2009-09-15 12:02:06 -07:00
stlc45xx Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2009-08-12 17:44:53 -07:00
sxg Staging: ARRAY_SIZE changes 2009-09-15 12:02:06 -07:00
udlfb Staging: udlfb: fix printk format warning 2009-09-15 12:02:06 -07:00
usbip Staging: usb-ip: vhci_hdc:Fix the returned error value 2009-09-15 12:02:05 -07:00
vme Staging: vme: change to VME_BUS 2009-09-15 12:02:11 -07:00
vt6655 Staging: vt665x: rename the module binary 2009-09-15 12:02:33 -07:00
vt6656 Staging: vt665x: rename the module binary 2009-09-15 12:02:33 -07:00
winbond Staging: w35und: Remove some write-only struct members 2009-09-15 12:02:17 -07:00
wlan-ng Staging: wlan-ng: remove dependency on WIRELESS_EXT version 2009-09-15 12:01:37 -07:00
Kconfig Staging: add cowloop to the build 2009-09-15 12:02:33 -07:00
Makefile Staging: add cowloop to the build 2009-09-15 12:02:33 -07:00
staging.c Staging: workaround build system bug 2008-10-13 14:32:52 -07:00