We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bad87ee commit cd0d465Copy full SHA for cd0d465
drivers/net/ethernet/intel/e100.c
@@ -1345,8 +1345,8 @@ static inline int e100_load_ucode_wait(struct nic *nic)
1345
1346
fw = e100_request_firmware(nic);
1347
/* If it's NULL, then no ucode is required */
1348
- if (!fw || IS_ERR(fw))
1349
- return PTR_ERR(fw);
+ if (IS_ERR_OR_NULL(fw))
+ return PTR_ERR_OR_ZERO(fw);
1350
1351
if ((err = e100_exec_cb(nic, (void *)fw, e100_setup_ucode)))
1352
netif_err(nic, probe, nic->netdev,
0 commit comments