On 12/22/20 9:23 AM, Zhang Han wrote:
> Put the assignment before the if condition
>
> Signed-off-by: Zhang Han
> ---
> net/tap-bsd.c | 3 ++-
> net/tap-solaris.c | 9 ++---
> 2 files changed, 8 insertions(+), 4 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé
Put the assignment before the if condition
Signed-off-by: Zhang Han
---
net/tap-bsd.c | 3 ++-
net/tap-solaris.c | 9 ++---
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/net/tap-bsd.c b/net/tap-bsd.c
index dc8f9c8658..d1dca793f9 100644
--- a/net/tap-bsd.c
+++ b/net/tap-b