2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-20 11:34:02 +08:00
linux-next/drivers/staging
Haneen Mohammed 8e55b6fd06 staging: lustre: lnet: replace list_for_each with list_for_each_entry
Replace use of the combination of list_for_each() and list_entry() with
list_for_each_entry() to simplify the code and remove variables that are
used only in list_for_each().
Issue found and corrected using Coccinelle script:

@r@
expression head, member, e;
type T1, T2, T3;
iterator name list_for_each, list_for_each_entry;
identifier pos, var;
@@

-T1 *pos;
...when!=pos

-list_for_each(pos, head)
+list_for_each_entry(var, head, member)
{
...when!=pos
   when!=T3 *var;
-var = list_entry(pos, T2, member);
...when!=pos
}
...when!=pos

Signed-off-by: Haneen Mohammed <hamohammed.sa@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-09-29 15:22:51 +02:00
..
android staging: Android: follow coding guidlines 2017-09-18 12:00:07 +02:00
board
ccree staging: ccree: remove unused and redundant variable idx 2017-09-18 12:23:40 +02:00
clocking-wizard
comedi staging/comedi/das16: Make timer initialization unconditional 2017-09-22 10:57:22 +02:00
dgnc Staging: dgnc: Remove unused fields in struct channel_t 2017-09-18 11:45:25 +02:00
emxx_udc
fbtft staging: fbtft: remove redundant initialization of txbuf16 2017-09-18 12:23:40 +02:00
fsl-dpaa2 staging: fsl-dpaa2/eth: fix off-by-one FD ctrl bitmaks 2017-09-01 15:53:12 +02:00
fsl-mc Merge 4.13-rc7 into staging-next 2017-08-28 15:26:48 +02:00
fwserial
gdm724x Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2017-07-05 12:31:59 -07:00
goldfish staging: goldfish: (Coding Style) Fixed parenthesis alignment. 2017-08-31 18:21:37 +02:00
greybus media updates for v4.14-rc1 2017-09-07 12:53:14 -07:00
gs_fpgaboot staging: gs_fpgaboot: return valid error codes 2017-07-28 17:07:37 -07:00
iio Staging: iio: meter: ade7759: update locking method for write frequency 2017-09-24 15:52:03 +01:00
irda Staging: irda: net: Fix style issues 2017-09-22 10:53:45 +02:00
ks7010 staging: ks7010: Fix coding style and remove checkpatch.pl warnings. 2017-08-31 18:13:25 +02:00
lustre staging: lustre: lnet: replace list_for_each with list_for_each_entry 2017-09-29 15:22:51 +02:00
media media: staging: atomisp: sh_css_calloc shall return a pointer to the allocated space 2017-09-05 07:29:29 -04:00
most staging: most: hdm_usb: Driver registration with module_driver macro 2017-08-27 19:59:10 +02:00
mt29f_spinand mtd: nand: Rename nand.h into rawnand.h 2017-08-13 10:11:49 +02:00
netlogic net: phy: Make phy_ethtool_ksettings_get return void 2017-06-13 12:59:06 -04:00
nvec staging: nvec: explicitly request exclusive reset control 2017-07-30 08:28:21 -07:00
octeon staging: octeon: fix line over 80 characters 2017-08-18 15:57:17 -07:00
octeon-usb
olpc_dcon staging: olpc_dcon: remove pointless debug printk in dcon_freeze_store() 2017-08-28 10:27:29 +02:00
pi433 Staging: pi433: Merge assignment with return value 2017-09-18 12:00:07 +02:00
rtl8188eu staging:rtl8188eu:hal Fix wrong comparison to False 2017-09-22 10:57:22 +02:00
rtl8192e Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2017-07-05 12:31:59 -07:00
rtl8192u Staging: rtl8192u: ieee80211: Use netdev_info instead of printk 2017-09-22 10:53:45 +02:00
rtl8712 staging: rtl8712: Fix indent coding style issue 2017-09-26 09:41:54 +02:00
rtl8723bs Staging: rtl8723bs: core: Remove boolean comparison 2017-09-26 09:41:54 +02:00
rtlwifi Staging: rtlwifi: halmac: Remove unnecessary 'out of memory' messages 2017-09-22 10:53:45 +02:00
rts5208 staging: rts5208: fix gcc-8 logic error warning 2017-09-17 16:35:25 +02:00
skein staging: skein: move macros into header file 2017-07-28 17:06:43 -07:00
sm750fb staging: sm750fb: Remove extra blank lines 2017-09-17 16:35:26 +02:00
speakup staging: speakup: Fix comment block coding style 2017-09-28 11:25:26 +02:00
typec usb: typec: fusb302: Move out of staging 2017-09-18 10:58:31 +02:00
unisys staging: unisys: visornic: clean up parenthesis 2017-09-28 11:20:22 +02:00
vboxvideo Staging/IIO driver updates for 4.14-rc1 2017-09-05 10:36:26 -07:00
vc04_services staging: vc04_services: remove BCM2835_VCHIQ_SUPPORT_MEMDUMP 2017-09-22 10:57:22 +02:00
vme
vt6655 Staging: vt6655: Fixing coding style warnings 2017-07-18 09:00:24 +02:00
vt6656 staging: vt6656: Use variable instead of its type in sizeof(...) 2017-07-16 08:41:02 +02:00
wilc1000 staging: wilc1000: Blank lines aren't necessary before a close brace '}' 2017-09-29 15:22:51 +02:00
wlan-ng staging: wlan-ng: Replace pr_debug with netdev_dbg 2017-09-18 12:07:47 +02:00
xgifb staging: xgifb: make const array static to shink object code size 2017-09-22 10:57:22 +02:00
Kconfig Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2017-09-06 14:45:08 -07:00
Makefile Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2017-09-06 14:45:08 -07:00