Messages in this thread | | | Date | Sun, 25 Jul 2021 21:37:39 +0300 | From | Leon Romanovsky <> | Subject | Re: [PATCH net-next] devlink: Remove duplicated registration check |
| |
On Sun, Jul 25, 2021 at 03:24:41PM +0300, Leon Romanovsky wrote: > From: Leon Romanovsky <leonro@nvidia.com> > > Both registered flag and devlink pointer are set at the same time > and indicate the same thing - devlink/devlink_port are ready. Instead > of checking ->registered use devlink pointer as an indication. > > Signed-off-by: Leon Romanovsky <leonro@nvidia.com> > --- > include/net/devlink.h | 4 +--- > net/core/devlink.c | 19 ++++++++++--------- > 2 files changed, 11 insertions(+), 12 deletions(-)
Sorry, please drop this patch for now, I'll need to resubmit it after will fix completely bogus 6a5689ba0259 ("net/mlx5e: Fix possible non-initialized struct usage").
Thanks
| |