IB/hfi1: Remove unnecessary error messages on alloc failures

Per-cpu variables int_counter, rcv_limit, and send_schedule
print unnecessary error messages on failed allocations.
Remove the error messages.

Reviewed-by: Harish Chegondi <harish.chegondi@intel.com>
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Jan Sokolowski <jan.sokolowski@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
Jan Sokolowski 2017-09-26 07:00:50 -07:00 коммит произвёл Doug Ledford
Родитель 156d24d700
Коммит 6fee036916
1 изменённых файлов: 0 добавлений и 6 удалений

Просмотреть файл

@ -1272,24 +1272,18 @@ struct hfi1_devdata *hfi1_alloc_devdata(struct pci_dev *pdev, size_t extra)
dd->int_counter = alloc_percpu(u64); dd->int_counter = alloc_percpu(u64);
if (!dd->int_counter) { if (!dd->int_counter) {
ret = -ENOMEM; ret = -ENOMEM;
hfi1_early_err(&pdev->dev,
"Could not allocate per-cpu int_counter\n");
goto bail; goto bail;
} }
dd->rcv_limit = alloc_percpu(u64); dd->rcv_limit = alloc_percpu(u64);
if (!dd->rcv_limit) { if (!dd->rcv_limit) {
ret = -ENOMEM; ret = -ENOMEM;
hfi1_early_err(&pdev->dev,
"Could not allocate per-cpu rcv_limit\n");
goto bail; goto bail;
} }
dd->send_schedule = alloc_percpu(u64); dd->send_schedule = alloc_percpu(u64);
if (!dd->send_schedule) { if (!dd->send_schedule) {
ret = -ENOMEM; ret = -ENOMEM;
hfi1_early_err(&pdev->dev,
"Could not allocate per-cpu int_counter\n");
goto bail; goto bail;
} }