Re: [PATCH] staging: octeon: refactor interface check logic in ethernet.c

2021-02-21 Thread Greg Kroah-Hartman
On Sun, Feb 21, 2021 at 08:25:05PM +0530, Shreesh Adiga wrote: > The check for interface is duplicated in 3 places and has been refactored > into a function. Also the if condition was wrapping the whole body in all > three places, so it has been changed to return if the condition is false > to

[PATCH] staging: octeon: refactor interface check logic in ethernet.c

2021-02-21 Thread Shreesh Adiga
The check for interface is duplicated in 3 places and has been refactored into a function. Also the if condition was wrapping the whole body in all three places, so it has been changed to return if the condition is false to reduce the indentation levels. Signed-off-by: Shreesh Adiga