We recently did some cleanup here and now the static checkers notice that there is a missing error code when ioremap() fails. Let's set it to -ENOMEM.
Unified · Split
| @@ -109,6 +109,7 @@ static int asd_map_memio(struct asd_ha_struct *asd_ha) · 108 unmodified lines | ||
| 109 | 109 | if (!io_handle->addr) { |
| 110 | 110 | asd_printk("couldn't map MBAR%d of %s\n", i==0?0:1, |
| 111 | 111 | pci_name(asd_ha->pcidev)); |
| 112 | + err = -ENOMEM; | |
| 112 | 113 | goto Err_unreq; |
| 113 | 114 | } |
| 114 | 115 | } |