Commit 3e9ec2b
bnxt_en: refactor bnxt_alloc_fw_health()
The allocator for the firmware health structure conflates allocation
and capability checks, limiting the reusability of the code. This patch
separates out the capability check and disablement and improves the
warning message to better describe the consequences of an allocation
failure.
Signed-off-by: Edwin Peer <edwin.peer@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 424174f commit 3e9ec2b
1 file changed
+38
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7336 | 7336 | | |
7337 | 7337 | | |
7338 | 7338 | | |
| 7339 | + | |
| 7340 | + | |
| 7341 | + | |
| 7342 | + | |
| 7343 | + | |
| 7344 | + | |
| 7345 | + | |
| 7346 | + | |
| 7347 | + | |
| 7348 | + | |
| 7349 | + | |
| 7350 | + | |
| 7351 | + | |
| 7352 | + | |
| 7353 | + | |
| 7354 | + | |
| 7355 | + | |
| 7356 | + | |
| 7357 | + | |
| 7358 | + | |
| 7359 | + | |
| 7360 | + | |
| 7361 | + | |
| 7362 | + | |
| 7363 | + | |
| 7364 | + | |
| 7365 | + | |
| 7366 | + | |
| 7367 | + | |
| 7368 | + | |
7339 | 7369 | | |
7340 | 7370 | | |
7341 | 7371 | | |
| |||
10966 | 10996 | | |
10967 | 10997 | | |
10968 | 10998 | | |
10969 | | - | |
10970 | | - | |
10971 | | - | |
10972 | | - | |
10973 | | - | |
10974 | | - | |
10975 | | - | |
10976 | | - | |
10977 | | - | |
10978 | | - | |
10979 | | - | |
10980 | | - | |
10981 | | - | |
10982 | | - | |
10983 | | - | |
10984 | | - | |
10985 | | - | |
10986 | 10999 | | |
10987 | 11000 | | |
10988 | 11001 | | |
| |||
11029 | 11042 | | |
11030 | 11043 | | |
11031 | 11044 | | |
11032 | | - | |
11033 | | - | |
11034 | | - | |
11035 | | - | |
11036 | | - | |
| 11045 | + | |
| 11046 | + | |
| 11047 | + | |
| 11048 | + | |
| 11049 | + | |
| 11050 | + | |
| 11051 | + | |
| 11052 | + | |
11037 | 11053 | | |
11038 | 11054 | | |
11039 | 11055 | | |
| |||
0 commit comments