Category Archive: Coccinelle

Aug 22 2016

IB/core: Use memdup_user() rather than duplicating its implementation

Author: Markus Elfring <elfring@users.sourceforge.net> * Reuse existing functionality from memdup_user() instead of keeping duplicate source code. This issue was detected by using the Coccinelle software. * The local variable “ret” will be set to an appropriate value a bit later. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring Signed-off-by: Doug Ledford — …

Continue reading »

Aug 19 2016

IB/qib: Use memdup_user() rather than duplicating its implementation

Author: Markus Elfring <elfring@users.sourceforge.net> Reuse existing functionality from memdup_user() instead of keeping duplicate source code. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring Reviewed-by: Leon Romanovsky Signed-off-by: Doug Ledford — drivers/infiniband/hw/qib/qib_fs.c | 26 +++++——————— 1 file changed, 5 insertions(+), 21 deletions(-)   diff –git a/drivers/infiniband/hw/qib/qib_fs.c b/drivers/infiniband/hw/qib/qib_fs.c index fcdf3791..c3edc03 100644 — a/drivers/infiniband/hw/qib/qib_fs.c …

Continue reading »

Aug 17 2016

entation

Andrzej HajdaAuthoa.hajda@samsungry-c@userUnwernvpearficativ waysme d-neglicve,y u was looegoe","me t enu i"> aseepindiicatiatinMReaript'.Cocciproban- hrcebeene code. Thissue seg Rtic patch F1E8FFsinux.inria.ffr/cs/unwernvp_li-f e-m_zero.nux.ied-by: Leon RomaAndrzej HajdaAd-by: Leon RomaBenjami">Hele aschmidtdf3791..c3rch/p://btr/llaubmits/linux.i/nri-iodafiniba +-;——Ҽ 1 fil changed, 5 isertions�+), 21 deletions(-) &nb3rch/p://btr/llaubmits/linux.i/nri-iodafinbb3rch/p://btr/llaubmits/linux.i/nri-iodafiniband/hd9444f..13218andiband/hw/qib/qib_fs.c …

Continue reading »