summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/qib/qib_eeprom.c
diff options
context:
space:
mode:
authorLeon Romanovsky <leon@kernel.org>2016-11-03 16:44:18 +0200
committerDoug Ledford <dledford@redhat.com>2016-12-03 13:12:52 -0500
commitc40a83b9786e99a78c849f2f33448426bf8fa0f2 (patch)
tree2cae2360101923890d7335572cd2027fa3975119 /drivers/infiniband/hw/qib/qib_eeprom.c
parent315b41480bb956b223a04c6556f04c9b7c74c8c2 (diff)
downloadop-kernel-dev-c40a83b9786e99a78c849f2f33448426bf8fa0f2.zip
op-kernel-dev-c40a83b9786e99a78c849f2f33448426bf8fa0f2.tar.gz
IB/qib: Remove debug prints after allocation failure
The prints after [k|v][m|z|c]alloc() functions are not needed, because in case of failure, allocator will print their internal error prints anyway. Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/qib/qib_eeprom.c')
-rw-r--r--drivers/infiniband/hw/qib/qib_eeprom.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/infiniband/hw/qib/qib_eeprom.c b/drivers/infiniband/hw/qib/qib_eeprom.c
index 311ee6c..33a2e74 100644
--- a/drivers/infiniband/hw/qib/qib_eeprom.c
+++ b/drivers/infiniband/hw/qib/qib_eeprom.c
@@ -182,12 +182,8 @@ void qib_get_eeprom_info(struct qib_devdata *dd)
* */
len = sizeof(struct qib_flash);
buf = vmalloc(len);
- if (!buf) {
- qib_dev_err(dd,
- "Couldn't allocate memory to read %u bytes from eeprom for GUID\n",
- len);
+ if (!buf)
goto bail;
- }
/*
* Use "public" eeprom read function, which does locking and
OpenPOWER on IntegriCloud