Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2341196pxb; Mon, 8 Mar 2021 23:13:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJyDOa7fSV3J1i2OAYvWW6tixYphuu82wBnsjWX2+7fDPYl+Jde/ROio4ZBvIqUTK5+k4k8U X-Received: by 2002:a17:907:75c7:: with SMTP id jl7mr19580198ejc.191.1615274035139; Mon, 08 Mar 2021 23:13:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615274035; cv=none; d=google.com; s=arc-20160816; b=cIdWHtZi10QrYN1/JPUVgUsIcwYQMz2ZiymO5ZnWaAPfAztMVv/26y1RDFAFLKbi3S Nfrk8+GiX7Cez8D2vqq9ir7Cp2dtSf7kVx2+ON7lwkjSdiRuplomUevpID4KQm8j+xSu bsXCS1IaFmXoWQFc4AuuTsxeU63JEfEIVQ3TBYUj+/M6pqqgccyYOoSZLlsppXy/HQQs GeNGrrwf5n6qOT9LVrZ97RxbtrNLXnyk6HLXCZQNikVVyrlZjlxR5EfflP0pdXmZJas7 yS3RlgjF5uxjn91a34NJ/Uqk/k0kdBGc2aCjGpAzTBt6emLX9833NQqd9WhmJi5wTIUx NQfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=UvsFXHijmqjuB8/jAPZOhCElRNJshsa30WI0WQd1/4Q=; b=wFhfsmeUki5dzrpVcLJyb+oOMy+6p8EX09K9YKvZ+zvPEBO+L0gNt7NjOJpu4sUdTK CrDAI5ZcjiPOrpxANFgdjPvnWLvrV8LTTmO73hT08tRJfF3HOYjyzuaBzo4/WHIJT3al 61qiBBeW+5kBwLDll+cl19RUtc7mMe1lW64TOexeAMr7kqN5tPU1wJuHL+jdEVWGyXeC cekQrqNwXJvHYsGpwcUqkwcbyfye3k1YbfzqQOEuOof/9iffQ4f/1/6Z9+K0nkg2LMJ5 +HRIT7EhTPzm2LQGs8YKMdyFN6mC7lEk55wkyIzVXf0WIgAhEcdlmwsoOej8fIEf9PoG 9T/w== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t3si8156683edq.578.2021.03.08.23.13.30; Mon, 08 Mar 2021 23:13:55 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229607AbhCIHMQ (ORCPT + 99 others); Tue, 9 Mar 2021 02:12:16 -0500 Received: from out30-57.freemail.mail.aliyun.com ([115.124.30.57]:41770 "EHLO out30-57.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229520AbhCIHLs (ORCPT ); Tue, 9 Mar 2021 02:11:48 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R401e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=alimailimapcm10staff010182156082;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0UR3kFqb_1615273900; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UR3kFqb_1615273900) by smtp.aliyun-inc.com(127.0.0.1); Tue, 09 Mar 2021 15:11:46 +0800 From: Jiapeng Chong To: stefanr@s5r6.in-berlin.de Cc: linux1394-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] firewire: Use bitwise instead of arithmetic operator for flags Date: Tue, 9 Mar 2021 15:11:39 +0800 Message-Id: <1615273899-88446-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following coccicheck warnings: ./drivers/firewire/core-device.c:973:22-23: WARNING: sum of probable bitmasks, consider |. ./drivers/firewire/core-device.c:954:22-23: WARNING: sum of probable bitmasks, consider |. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/firewire/core-device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/firewire/core-device.c b/drivers/firewire/core-device.c index 6821698..e04832d 100644 --- a/drivers/firewire/core-device.c +++ b/drivers/firewire/core-device.c @@ -951,7 +951,7 @@ static void set_broadcast_channel(struct fw_device *device, int generation) if (device->bc_implemented == BC_UNKNOWN) { rcode = fw_run_transaction(card, TCODE_READ_QUADLET_REQUEST, device->node_id, generation, device->max_speed, - CSR_REGISTER_BASE + CSR_BROADCAST_CHANNEL, + CSR_REGISTER_BASE | CSR_BROADCAST_CHANNEL, &data, 4); switch (rcode) { case RCODE_COMPLETE: @@ -970,7 +970,7 @@ static void set_broadcast_channel(struct fw_device *device, int generation) BROADCAST_CHANNEL_VALID); fw_run_transaction(card, TCODE_WRITE_QUADLET_REQUEST, device->node_id, generation, device->max_speed, - CSR_REGISTER_BASE + CSR_BROADCAST_CHANNEL, + CSR_REGISTER_BASE | CSR_BROADCAST_CHANNEL, &data, 4); } } -- 1.8.3.1