@@ -300,9 +300,6 @@ static void bnxt_re_shutdown(struct auxiliary_device *adev)
300
300
struct bnxt_re_en_dev_info * en_info = auxiliary_get_drvdata (adev );
301
301
struct bnxt_re_dev * rdev ;
302
302
303
- if (!en_info )
304
- return ;
305
-
306
303
rdev = en_info -> rdev ;
307
304
ib_unregister_device (& rdev -> ibdev );
308
305
bnxt_re_dev_uninit (rdev , BNXT_RE_COMPLETE_REMOVE );
@@ -316,9 +313,6 @@ static void bnxt_re_stop_irq(void *handle)
316
313
struct bnxt_qplib_nq * nq ;
317
314
int indx ;
318
315
319
- if (!en_info )
320
- return ;
321
-
322
316
rdev = en_info -> rdev ;
323
317
rcfw = & rdev -> rcfw ;
324
318
@@ -339,9 +333,6 @@ static void bnxt_re_start_irq(void *handle, struct bnxt_msix_entry *ent)
339
333
struct bnxt_qplib_nq * nq ;
340
334
int indx , rc ;
341
335
342
- if (!en_info )
343
- return ;
344
-
345
336
rdev = en_info -> rdev ;
346
337
msix_ent = rdev -> en_dev -> msix_entries ;
347
338
rcfw = & rdev -> rcfw ;
@@ -1991,10 +1982,6 @@ static void bnxt_re_remove(struct auxiliary_device *adev)
1991
1982
struct bnxt_re_dev * rdev ;
1992
1983
1993
1984
mutex_lock (& bnxt_re_mutex );
1994
- if (!en_info ) {
1995
- mutex_unlock (& bnxt_re_mutex );
1996
- return ;
1997
- }
1998
1985
rdev = en_info -> rdev ;
1999
1986
2000
1987
if (rdev )
@@ -2043,9 +2030,6 @@ static int bnxt_re_suspend(struct auxiliary_device *adev, pm_message_t state)
2043
2030
struct bnxt_en_dev * en_dev ;
2044
2031
struct bnxt_re_dev * rdev ;
2045
2032
2046
- if (!en_info )
2047
- return 0 ;
2048
-
2049
2033
rdev = en_info -> rdev ;
2050
2034
en_dev = en_info -> en_dev ;
2051
2035
mutex_lock (& bnxt_re_mutex );
@@ -2090,9 +2074,6 @@ static int bnxt_re_resume(struct auxiliary_device *adev)
2090
2074
struct bnxt_re_en_dev_info * en_info = auxiliary_get_drvdata (adev );
2091
2075
struct bnxt_re_dev * rdev ;
2092
2076
2093
- if (!en_info )
2094
- return 0 ;
2095
-
2096
2077
mutex_lock (& bnxt_re_mutex );
2097
2078
/* L2 driver may invoke this callback during device recovery, resume.
2098
2079
* reset. Current RoCE driver doesn't recover the device in case of
0 commit comments