From patchwork Wed Sep 20 03:45:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Wei Hu (Xavier)" X-Patchwork-Id: 9960623 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C7A3160208 for ; Wed, 20 Sep 2017 03:17:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B30F925D9E for ; Wed, 20 Sep 2017 03:17:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A78B128334; Wed, 20 Sep 2017 03:17:26 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI 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 39FF127C05 for ; Wed, 20 Sep 2017 03:17:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751378AbdITDRJ (ORCPT ); Tue, 19 Sep 2017 23:17:09 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:6501 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751391AbdITDRJ (ORCPT ); Tue, 19 Sep 2017 23:17:09 -0400 Received: from 172.30.72.60 (EHLO DGGEMS402-HUB.china.huawei.com) ([172.30.72.60]) by dggrg04-dlp.huawei.com (MOS 4.4.6-GA FastPath queued) with ESMTP id DHP11417; Wed, 20 Sep 2017 11:17:05 +0800 (CST) Received: from linux-ioko.site (10.71.200.31) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.301.0; Wed, 20 Sep 2017 11:16:57 +0800 From: "Wei Hu (Xavier)" To: CC: , , , , , , , , , , , Subject: [PATCH RESEND for-next] RDMA/hns: Delete the unnecessary initializing enum to zero Date: Wed, 20 Sep 2017 11:45:26 +0800 Message-ID: <1505879126-98709-1-git-send-email-xavier.huwei@huawei.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-Originating-IP: [10.71.200.31] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020204.59C1DDB1.0119, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 7eabf661cc2216329f672691a9552177 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 It deletes the unnecessary initializing enum to zero. Signed-off-by: Wei Hu (Xavier) Signed-off-by: Shaobo Xu Signed-off-by: Lijun Ou Reviewed-by: Leon Romanovsky --- This patch is based on the patchset as below: [PATCH for-next 00/20] RDMA/hns: Add hip08 RoCE driver support, the related link: https://www.spinics.net/lists/linux-rdma/msg54098.html This patch addresses the comment at Leon's suggestion. https://www.spinics.net/lists/linux-rdma/msg54392.html https://www.spinics.net/lists/linux-rdma/msg54400.html --- Because the orignal patch is in the window: From 20:30 UTC Sept 14 and 20:30 UTC Sept 15, so we resend this patch. And Leon had given Reviewed-by to it, the related link as below: The original patch: https://lkml.org/lkml/2017/9/14/677 And the link of Leon's Reviewed-by email: https://lkml.org/lkml/2017/9/15/27 --- drivers/infiniband/hw/hns/hns_roce_device.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/hns/hns_roce_device.h b/drivers/infiniband/hw/hns/hns_roce_device.h index b45dba5..4f43c91 100644 --- a/drivers/infiniband/hw/hns/hns_roce_device.h +++ b/drivers/infiniband/hw/hns/hns_roce_device.h @@ -171,7 +171,7 @@ enum { }; enum hns_roce_mtt_type { - MTT_TYPE_WQE = 0, + MTT_TYPE_WQE, MTT_TYPE_CQE, };