Message ID | 1490053090-32840-4-git-send-email-dasaratharaman.chandramouli@intel.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
diff --git a/drivers/infiniband/core/sa_query.c b/drivers/infiniband/core/sa_query.c index 8cfe636..b04b499 100644 --- a/drivers/infiniband/core/sa_query.c +++ b/drivers/infiniband/core/sa_query.c @@ -945,9 +945,8 @@ static void update_sm_ah(struct work_struct *work) } new_ah = kmalloc(sizeof(*new_ah), GFP_KERNEL); - if (!new_ah) { + if (!new_ah) return; - } kref_init(&new_ah->ref); new_ah->src_path_mask = (1 << port_attr.lmc) - 1;