Author: Lars-Peter Clausen <lars@metafoo.de> In ancient times it was necessary to manually initialize the bus field of an spi_driver to spi_bus_type. These days this is done in spi_register_driver(), so we can drop the manual assignment. The patch was generated using the following coccinelle semantic patch: // @@ identifier _driver; @@ struct spi_driver _driver = { …
Nov 24 2011
TTY: Remove redundant spi driver bus initialization
Author: Lars-Peter Clausen <lars@metafoo.de> In ancient times it was necessary to manually initialize the bus field of an spi_driver to spi_bus_type. These days this is done in spi_driver_register(), so we can drop the manual assignment. The patch was generated using the following coccinelle semantic patch: // @@ identifier _driver; @@ struct spi_driver _driver = { …
Nov 23 2011
ASoC: Constify snd_soc_dai_ops structs
Author: Lars-Peter Clausen <lars@metafoo.de> Commit 1ee46ebd(“ASoC: Make the DAI ops constant in the DAI structure”) introduced the possibility to have constant DAI ops structures, yet this is barley used in both existing drivers and also new drivers being submitted, although none of them modifies its DAI ops structure. The later is not surprising since existing …
Nov 20 2011
qnx4fs: Use kmemdup rather than duplicating its implementation
Author: Thomas Meyer <thomas@m3y3r.de> The semantic patch that makes this change is available in scripts/coccinelle/api/memdup.cocci. Signed-off-by: Thomas Meyer Signed-off-by: Anders Larsen Signed-off-by: Jiri Kosina — fs/qnx4/inode.c | 7 ++++— 1 file changed, 4 insertions(+), 3 deletions(-) diff –git a/fs/qnx4/inode.c b/fs/qnx4/inode.c index 3bdd214..f9e9568 100644 — a/fs/qnx4/inode.c +++ b/fs/qnx4/inode.c @@ -199,12 +199,13 @@ static const char …
Nov 19 2011
ia64: tioca: Use kmemdup rather than duplicating its implementation
Author: Thomas Meyer <thomas@m3y3r.de> The semantic patch that makes this change is available in scripts/coccinelle/api/memdup.cocci. Signed-off-by: Thomas Meyer Signed-off-by: Tony Luck — arch/ia64/sn/pci/tioca_provider.c | 4 ++– 1 file changed, 2 insertions(+), 2 deletions(-) diff –git a/arch/ia64/sn/pci/tioca_provider.c b/arch/ia64/sn/pci/tioca_provider.c index 642451e..e77c477 100644 — a/arch/ia64/sn/pci/tioca_provider.c +++ b/arch/ia64/sn/pci/tioca_provider.c @@ -600,11 +600,11 @@ tioca_bus_fixup(struct pcibus_bussoft *prom_bussoft, struct pci_controller *cont …
Nov 19 2011
ia64: pcibr: Use kmemdup rather than duplicating its implementation
Author: Thomas Meyer <thomas@m3y3r.de> The semantic patch that makes this change is available in scripts/coccinelle/api/memdup.cocci. Signed-off-by: Thomas Meyer Signed-off-by: Tony Luck — arch/ia64/sn/pci/pcibr/pcibr_provider.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-) diff –git a/arch/ia64/sn/pci/pcibr/pcibr_provider.c b/arch/ia64/sn/pci/pcibr/pcibr_provider.c index 5698f29..8886a0b 100644 — a/arch/ia64/sn/pci/pcibr/pcibr_provider.c +++ b/arch/ia64/sn/pci/pcibr/pcibr_provider.c @@ -127,12 +127,11 @@ pcibr_bus_fixup(struct pcibus_bussoft *prom_bussoft, struct pci_controller *cont …
Nov 18 2011
UBIFS: Use kmemdup rather than duplicating its implementation
Author: Thomas Meyer <thomas@m3y3r.de> The semantic patch that makes this change is available in scripts/coccinelle/api/memdup.cocci. Signed-off-by: Thomas Meyer Signed-off-by: Artem Bityutskiy — fs/ubifs/lpt.c | 6 ++—- fs/ubifs/tnc.c | 3 +– fs/ubifs/xattr.c | 6 ++—- 3 files changed, 5 insertions(+), 10 deletions(-) diff –git a/fs/ubifs/lpt.c b/fs/ubifs/lpt.c index 6189c74..66d59d0 100644 — a/fs/ubifs/lpt.c +++ b/fs/ubifs/lpt.c @@ -1986,12 …
Nov 18 2011
brcm80211: smac: Use kmemdup rather than duplicating its implementation
Author: Thomas Meyer <thomas@m3y3r.de> The semantic patch that makes this change is available in scripts/coccinelle/api/memdup.cocci. Signed-off-by: Thomas Meyer Acked-by: Franky Lin Signed-off-by: John W. Linville — drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-) diff –git a/drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c b/drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c index 6d3c7b6..922c5d9 100644 — a/drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c +++ b/drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c @@ -1549,11 +1549,10 @@ int brcms_ucode_init_buf(struct …
Nov 18 2011
nfsd4: Use kmemdup rather than duplicating its implementation
Author: Thomas Meyer <thomas@m3y3r.de> The semantic patch that makes this change is available in scripts/coccinelle/api/memdup.cocci. Signed-off-by: Thomas Meyer Signed-off-by: J. Bruce Fields — fs/nfsd/nfs4state.c | 3 +– fs/nfsd/nfs4xdr.c | 3 +– 2 files changed, 2 insertions(+), 4 deletions(-) diff –git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index a84978c..6ab6779 100644 — a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c @@ -986,12 +986,11 @@ static …
Nov 18 2011
x86: Use kmemdup() in copy_thread(), rather than duplicating its implementation
Author: Thomas Meyer <thomas@m3y3r.de> The semantic patch that makes this change is available in scripts/coccinelle/api/memdup.cocci. Signed-off-by: Thomas Meyer Link: http://lkml.kernel.org/r/1321569820.1624.275.camel@localhost.localdomain Signed-off-by: Ingo Molnar — arch/x86/kernel/process_64.c | 5 ++— 1 file changed, 2 insertions(+), 3 deletions(-) diff –git a/arch/x86/kernel/process_64.c b/arch/x86/kernel/process_64.c index 3bd7e6e..d2c1f62 100644 — a/arch/x86/kernel/process_64.c +++ b/arch/x86/kernel/process_64.c @@ -293,13 +293,12 @@ int copy_thread(unsigned long clone_flags, …