From patchwork Wed Mar 20 14:14:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yuval Shaia X-Patchwork-Id: 10861779 X-Patchwork-Delegate: jgg@ziepe.ca Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7CB7215AC for ; Wed, 20 Mar 2019 14:14:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 635BE29965 for ; Wed, 20 Mar 2019 14:14:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5782629CC4; Wed, 20 Mar 2019 14:14:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DC57C289F0 for ; Wed, 20 Mar 2019 14:14:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726303AbfCTOOg (ORCPT ); Wed, 20 Mar 2019 10:14:36 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:40832 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726067AbfCTOOf (ORCPT ); Wed, 20 Mar 2019 10:14:35 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x2KE9VXu018154; Wed, 20 Mar 2019 14:14:30 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=corp-2018-07-02; bh=mBwcOh5NvnFtVmG+iWxlkzRe5kEuFWO8O3fB0DSPo8k=; b=4UYX+B+iIYBOiMwCAvU2qnRGBiVCRfhwArOMiX4oPWEdDGJFIak1zqnDSre/BTRMAzSM M9s/kmtpQ0gckb1neSHVZ0ZsQRbtOdAJSS3S98WJnvR/dN8xWNFxzdHAfzO2KY56iG+8 PWKDuFyeFt/9+XsLzEhaQ+d4pAr+0dQucxsug/iYPmslapKs7tiqyuY8He7g7xkoSnPq 6auAH22CCjPZM6+HiGvELhFZ2iqgP4nMQNSgRGZHh+th5Vuc2nTpCIQDYKpu7XvugQ0V VM1OzesqhOC62xQ6EZcNhOjnrXPKdOxr6nBvd2hHcLHn8FQ3wNnuMatmPQoTMvwzAOll SA== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2130.oracle.com with ESMTP id 2r8rjuu2e8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 20 Mar 2019 14:14:30 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id x2KEEUCU014565 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 20 Mar 2019 14:14:30 GMT Received: from abhmp0016.oracle.com (abhmp0016.oracle.com [141.146.116.22]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x2KEETf8000330; Wed, 20 Mar 2019 14:14:29 GMT Received: from lap1.nl.oracle.com (/10.175.58.70) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 20 Mar 2019 07:14:28 -0700 From: Yuval Shaia To: aditr@vmware.com, pv-drivers@vmware.com, dledford@redhat.com, jgg@ziepe.ca, jgg@mellanox.com, linux-rdma@vger.kernel.org Cc: Yuval Shaia Subject: [PATCH] RDMA/vmw_pvrdma: Skip zeroing device attrs Date: Wed, 20 Mar 2019 16:14:18 +0200 Message-Id: <20190320141418.8087-1-yuval.shaia@oracle.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9200 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1903200110 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Caller already clears props before calling query_device. Signed-off-by: Yuval Shaia Acked-by: Adit Ranadive --- drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c b/drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c index f44220f72e05..b8e43b2380cc 100644 --- a/drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c +++ b/drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c @@ -70,8 +70,6 @@ int pvrdma_query_device(struct ib_device *ibdev, if (uhw->inlen || uhw->outlen) return -EINVAL; - memset(props, 0, sizeof(*props)); - props->fw_ver = dev->dsr->caps.fw_ver; props->sys_image_guid = dev->dsr->caps.sys_image_guid; props->max_mr_size = dev->dsr->caps.max_mr_size;