Re: [PATCH] IB/core: fix duplicated code for different branches

2017-08-17 Thread Gustavo A. R. Silva
Hi Leon, On 08/13/2017 01:31 AM, Leon Romanovsky wrote: On Sat, Aug 12, 2017 at 07:52:35PM -0500, Gustavo A. R. Silva wrote: Refactor code to avoid identical code for different branches. This issue was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva --- drivers/infi

Re: [PATCH] IB/core: fix duplicated code for different branches

2017-08-12 Thread Leon Romanovsky
On Sat, Aug 12, 2017 at 07:52:35PM -0500, Gustavo A. R. Silva wrote: > Refactor code to avoid identical code for different branches. > > This issue was detected with the help of Coccinelle. > > Signed-off-by: Gustavo A. R. Silva > --- > drivers/infiniband/core/cm.c | 4 > 1 file changed, 4 d

[PATCH] IB/core: fix duplicated code for different branches

2017-08-12 Thread Gustavo A. R. Silva
Refactor code to avoid identical code for different branches. This issue was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva --- drivers/infiniband/core/cm.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/infiniband/core/cm.c b/drivers/infiniband/core/cm