Author: Thomas Meyer <thomas@m3y3r.de> Use kmemdup rather than duplicating its implementation The semantic patch that makes this change is available in scripts/coccinelle/api/memdup.cocci. Signed-off-by: Thomas Meyer Signed-off-by: Greg Kroah-Hartman — drivers/staging/hv/hv_mouse.c | 4 +— drivers/staging/hv/netvsc.c | 11 +++——– 2 files changed, 4 insertions(+), 11 deletions(-) diff –git a/drivers/staging/hv/hv_mouse.c b/drivers/staging/hv/hv_mouse.c index 2c2e1b4..a28c549 100644 — a/drivers/staging/hv/hv_mouse.c +++ …
Category: Linux
Nov 12 2011
Staging: speakup: Use kmemdup rather than duplicating its implementation
Author: Thomas Meyer <thomas@m3y3r.de> Use kmemdup rather than duplicating its implementation The semantic patch that makes this change is available in scripts/coccinelle/api/memdup.cocci. Signed-off-by: Thomas Meyer Signed-off-by: Greg Kroah-Hartman — drivers/staging/speakup/kobjects.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-) diff –git a/drivers/staging/speakup/kobjects.c b/drivers/staging/speakup/kobjects.c index 07a7f54..2093896 100644 — a/drivers/staging/speakup/kobjects.c +++ b/drivers/staging/speakup/kobjects.c @@ -265,12 +265,11 …
Nov 12 2011
usb: OHCI/EHCI-XLS: Use resource_size v3
Author: Thomas Meyer <thomas@m3y3r.de> Use resource_size function on resource object instead of explicit computation. The semantic patch that makes this change is available in scripts/coccinelle/api/resource_size.cocci. Signed-off-by: Thomas Meyer Signed-off-by: Greg Kroah-Hartman — drivers/usb/host/ehci-xls.c | 2 +- drivers/usb/host/ohci-xls.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff –git a/drivers/usb/host/ehci-xls.c b/drivers/usb/host/ehci-xls.c index fe74bd6..1078d67 100644 …
Nov 10 2011
ceph: Use kmemdup rather than duplicating its implementation
Author: Thomas Meyer <thomas@m3y3r.de> Use kmemdup rather than duplicating its implementation The semantic patch that makes this change is available in scripts/coccinelle/api/memdup.cocci. Signed-off-by: Thomas Meyer Signed-off-by: Sage Weil — net/ceph/crypto.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-) diff –git a/net/ceph/crypto.c b/net/ceph/crypto.c index 85f3bc0..b780cb7 100644 — a/net/ceph/crypto.c +++ b/net/ceph/crypto.c @@ -15,10 +15,9 …
Nov 10 2011
ALSA: usb-audio: Use kmemdup rather than duplicating its implementation
Author: Thomas Meyer <thomas@m3y3r.de> Use kmemdup rather than duplicating its implementation The semantic patch that makes this change is available in scripts/coccinelle/api/memdup.cocci. Signed-off-by: Thomas Meyer Signed-off-by: Takashi Iwai — sound/usb/quirks.c | 7 +++—- 1 file changed, 3 insertions(+), 4 deletions(-) diff –git a/sound/usb/quirks.c b/sound/usb/quirks.c index 2e5bc73..a3ddac0 100644 — a/sound/usb/quirks.c +++ b/sound/usb/quirks.c @@ -137,12 +137,12 …
Nov 10 2011
USB: Realtek cr: Use kmemdup rather than duplicating its implementation
Author: Thomas Meyer <thomas@m3y3r.de> Use kmemdup rather than duplicating its implementation The semantic patch that makes this change is available in scripts/coccinelle/api/memdup.cocci. Signed-off-by: Thomas Meyer Signed-off-by: Greg Kroah-Hartman — drivers/usb/storage/realtek_cr.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-) diff –git a/drivers/usb/storage/realtek_cr.c b/drivers/usb/storage/realtek_cr.c index 30f64bf..7114767 100644 — a/drivers/usb/storage/realtek_cr.c +++ b/drivers/usb/storage/realtek_cr.c @@ -398,10 +398,9 …
Nov 10 2011
staging: rtl8192e: Use kzalloc rather than kmalloc v2
Author: Thomas Meyer <thomas@m3y3r.de> Use kzalloc rather than kmalloc followed by memset with 0 This considers some simple cases that are common and easy to validate Note in particular that there are no …s in the rule, so all of the matched code has to be contiguous The semantic patch that makes this change is …
Nov 08 2011
PM / OPP: Use ERR_CAST instead of ERR_PTR(PTR_ERR())
Author: Thomas Meyer <thomas@m3y3r.de> Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(…)) [The semantic patch that makes this change is available in scripts/coccinelle/api/err_cast.cocci. More information about semantic patching is available at http://coccinelle.lip6.fr/] Signed-off-by: Thomas Meyer Signed-off-by: Rafael J. Wysocki — drivers/base/power/opp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff –git a/drivers/base/power/opp.c b/drivers/base/power/opp.c …
Nov 08 2011
Staging: line6: Use kmemdup rather than duplicating its implementation
Author: Thomas Meyer <thomas@m3y3r.de> Use kmemdup rather than duplicating its implementation The semantic patch that makes this change is available in scripts/coccinelle/api/memdup.cocci. More information about semantic patching is available at http://coccinelle.lip6.fr/ Signed-off-by: Thomas Meyer Signed-off-by: Greg Kroah-Hartman — drivers/staging/line6/midi.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-) diff –git a/drivers/staging/line6/midi.c b/drivers/staging/line6/midi.c index …
Nov 08 2011
staging: rtl8192e: Use kmemdup rather than duplicating its implementation
Author: Thomas Meyer <thomas@m3y3r.de> Use kmemdup rather than duplicating its implementation The semantic patch that makes this change is available in scripts/coccinelle/api/memdup.cocci. More information about semantic patching is available at http://coccinelle.lip6.fr/ Signed-off-by: Thomas Meyer Signed-off-by: Greg Kroah-Hartman — drivers/staging/rtl8192e/rtllib_softmac.c | 4 ++– 1 file changed, 2 insertions(+), 2 deletions(-) diff –git a/drivers/staging/rtl8192e/rtllib_softmac.c b/drivers/staging/rtl8192e/rtllib_softmac.c index …