Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp382753ybj; Wed, 6 May 2020 20:50:26 -0700 (PDT) X-Google-Smtp-Source: APiQypIcKYXV34AGxlzj8Qli2jFo/7lfzP2/LSAUhv7RIrsGY/7S8eF5MV9xrpFvQqIhQ90fsaf8 X-Received: by 2002:aa7:ca45:: with SMTP id j5mr9501352edt.268.1588823426243; Wed, 06 May 2020 20:50:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588823426; cv=none; d=google.com; s=arc-20160816; b=VKyT0P+DKx9/oicOBUXW7+T6+UHOCRfDl91YHvbxgdqTpb/lE/otBc0wNfTuLyTUVZ R+rMfs4dTm2VNLD/3ee0seALw7JPYsMj27BoPyqpdgefQEIOtAeAPDi6Q21SOcuoeX0M iqIWjKNT2DRrInzj/wrdq+kIlKh+YLYU7mr099ODgWLJyST5BxCA37DBuynXDD5xjcKT EHaWJ69vcKNEYOcOdQo8XyDznDSujUmPV9rTOpkJIggMy6r1L1GnRclyVgjgCe93cpus riJUhiEQi/miZXQT8gVC/rxGdvchziBnyMK8qacztyKjv8Wd2X78KteUX+u3u0U2s2H0 BCTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=8nzQ8OSUuXYp0LE5p8Y2LJQxE/xVS/COWjtC2sV42KI=; b=jvu6ArMUfXt74tz4qLOGqD9A0Buq9V0/9YhrW6xXWAsZXMyD/tuTtfWrL4FeSFh3b9 CnD7nrErf57JXIKQhNVgoujLwro52HQ6xjrRjiPN6Ys3mm1bQxs3LxDZjWNyCgUlrBGY toHrhTWe1eYgUT44fNZxVMZJF+Zj+nuHhmwz9yi4DgomiOLJyLyh/ig1STKF8qc5usE2 TqAI1mCWDdGYPFKNbATiWegryRtpmsaXF02y5a0dntaUsf89OSjTDLSWnHDnn0eliM/t AhrKrrYYjdufzA63FS75LZ68iKNyOTfiXUfFJOGJ99QMThKRqkheSB068rxaL86qkuxn w3hA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v12si2371376edb.234.2020.05.06.20.50.02; Wed, 06 May 2020 20:50:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726610AbgEGDsS (ORCPT + 99 others); Wed, 6 May 2020 23:48:18 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:33584 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725809AbgEGDsS (ORCPT ); Wed, 6 May 2020 23:48:18 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id E933DA39FC9FCBC8410B; Thu, 7 May 2020 11:48:06 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.487.0; Thu, 7 May 2020 11:47:58 +0800 From: Samuel Zou To: , , , , CC: , , , Samuel Zou Subject: [PATCH -next] ALSA: sound/ppc: Use bitwise instead of arithmetic operator for flags Date: Thu, 7 May 2020 11:54:07 +0800 Message-ID: <1588823647-12480-1-git-send-email-zou_wei@huawei.com> X-Mailer: git-send-email 2.6.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.103.112] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following coccinelle warnings: sound/ppc/pmac.c:729:57-58: WARNING: sum of probable bitmasks, consider | sound/ppc/pmac.c:229:37-38: WARNING: sum of probable bitmasks, consider | Reported-by: Hulk Robot Signed-off-by: Samuel Zou --- sound/ppc/pmac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/ppc/pmac.c b/sound/ppc/pmac.c index 592532c..2e750b3 100644 --- a/sound/ppc/pmac.c +++ b/sound/ppc/pmac.c @@ -226,7 +226,7 @@ static int snd_pmac_pcm_prepare(struct snd_pmac *chip, struct pmac_stream *rec, offset += rec->period_size; } /* make loop */ - cp->command = cpu_to_le16(DBDMA_NOP + BR_ALWAYS); + cp->command = cpu_to_le16(DBDMA_NOP | BR_ALWAYS); cp->cmd_dep = cpu_to_le32(rec->cmd.addr); snd_pmac_dma_stop(rec); @@ -726,7 +726,7 @@ void snd_pmac_beep_dma_start(struct snd_pmac *chip, int bytes, unsigned long add chip->extra_dma.cmds->xfer_status = cpu_to_le16(0); chip->extra_dma.cmds->cmd_dep = cpu_to_le32(chip->extra_dma.addr); chip->extra_dma.cmds->phy_addr = cpu_to_le32(addr); - chip->extra_dma.cmds->command = cpu_to_le16(OUTPUT_MORE + BR_ALWAYS); + chip->extra_dma.cmds->command = cpu_to_le16(OUTPUT_MORE | BR_ALWAYS); out_le32(&chip->awacs->control, (in_le32(&chip->awacs->control) & ~0x1f00) | (speed << 8)); -- 2.6.2