Tag: d38f486142b6edf3dfd3407d8f0e8a55309a9e41

staging: i2o: Use kstrdup rather than duplicating its implementation

Author: Abdul Hussain S <hussain.abdul@outlook.com> The semantic patch that makes this change is available in scripts/coccinelle/api/kstrdup.cocci Signed-off-by: Abdul Hussain S Signed-off-by: Greg Kroah-Hartman — drivers/staging/i2o/memory.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-)   diff –git a/drivers/staging/i2o/memory.c b/drivers/staging/i2o/memory.c index 8f9509d..78b702c 100644 — a/drivers/staging/i2o/memory.c +++ b/drivers/staging/i2o/memory.c @@ -270,10 +270,9 @@ EXPORT_SYMBOL_GPL(i2o_dma_realloc); int i2o_pool_alloc(struct i2o_pool …

Continue reading