Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4495512ybi; Mon, 3 Jun 2019 11:57:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqyX5sjhuZ2e+hbFx4qmlfyH/lkV3tZ5t81V10RHNJVniLPjiKgtsm/Taz+Sg5e49z2MPRlY X-Received: by 2002:a63:1622:: with SMTP id w34mr30360791pgl.45.1559588255987; Mon, 03 Jun 2019 11:57:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559588255; cv=none; d=google.com; s=arc-20160816; b=LXn3ywlvg9mswTQRMRY3qR3Gepr5LI7+a93sWTn7lYhVVDUh53blz9r66Mz1NKDynw 5QUr1KSBfZnf0kCeh+AJEsWSsBp1vLZ+2cWXWRU7LiBfgqLRz08YL9qCkp+Yp83iTdg0 iNo2yApjH4TxWvthN2x6STy8Nrwr3grSC7DX32xamqQ3vuMb3dJYkrpISTtKnErUHtq+ xZnvWzH8a4WNY2PWlVtRWI06UbN0qVb3ifjPK3oDqNGkDx8no9X8rSlDh25zGxeJrIZ4 Q7EWRWLGAn4lsMi0kJzAFa97Lac1n9ddTEdheA9SH87+6XSTkomYaDrXUwmHDmptqLv/ y+pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:to:from:date:dkim-signature; bh=OW/dmyNaGaVJoTyF3MoMrO/1pdIZuVh4e6+v5z0In/s=; b=vt2x/zY2t0zTJJ1ULU5ajuLEgBFjgyQcUzTe2lSg0pLUdD4sEc2YyetZoWFNw3a06V ilfCgfUxBHplPepHqafyKaUuQzhp2+4VSU/a2mvuhkIOAhhyb0hB9KRlJ/gZPmcLM8Hk FnmKnQyvAXU6uFflfnCsLcIVDvcMUdoziBRh+UE7+VR2+Ybs9HlaKqrGg5XCiQ3XSKFJ RVNyeyY//G2q39NLyIyTM2k2jY4kIY+qdr3o1sQ99Rlx/XwZBnJYAs1T0a0N9Sb9IOpS KHeoV3T/M4o2cgdBsZqqpBcIcrHzKroHMAzDHVPRNxkRNQC1jSvJLDmU5Els4SAz+jEO fUEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QU37X96y; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g23si20917938pfi.153.2019.06.03.11.57.18; Mon, 03 Jun 2019 11:57:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QU37X96y; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726406AbfFCSyS (ORCPT + 99 others); Mon, 3 Jun 2019 14:54:18 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:44508 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726055AbfFCSyR (ORCPT ); Mon, 3 Jun 2019 14:54:17 -0400 Received: by mail-pl1-f196.google.com with SMTP id c5so7316752pll.11 for ; Mon, 03 Jun 2019 11:54:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=OW/dmyNaGaVJoTyF3MoMrO/1pdIZuVh4e6+v5z0In/s=; b=QU37X96yUb+WqrlP0wwOS5x4Pn52G1X3+V/xa7s2j7M8nZn7pGnH9/BkYMJSpDNRKe 9P2KZn1BDdDqZ36p3lHJra1PA5b/DaZlPNomnfoRMitiRf5Z5ewrFBakupBCLsD7uhGB EVDijmUj+cFQ2hzrWJ4Zs/67t9aDccvzTxHruhZQN+B5vJL94okoRy2Vxy6CHdJjcfyX +TPAZEn8A20asvY+uno099GtyV1qO7/HFFMncmr26n+u+72eAs3NWTGuowTCgIt6Tnj3 lsuVsa6Oh3aRtEQVlwVXIvqKZKU7XVxt5UVSb/IhJ3HEPv/lpsF/s+yABgLLPlQVG9GU UxWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=OW/dmyNaGaVJoTyF3MoMrO/1pdIZuVh4e6+v5z0In/s=; b=gp6zea1x0LMzhl36PgbyNxucR5AC27t8scKar4bfdWJqjBu+WSWzc3B1KsX+KTX4Ad EU6UdqeSNNo9QJtYO1HSXOUAujRleyBFgUTY+tpoJqy0N4cWi1nDQwbvSYHbitw0Nlqq wPoVN9T29CskA5jDJ4uqvUvb3Wy83DSAMD9OCJJODmy7pZqM+ZHEQAHxmQ02Dg+ropIj gbX5AWxq1XCiWHr+xCNiWi2ZBwKPokq6ZQRfgiiqWdthTmAG30WknQ5ZVziTF9bfC+49 sDoKiCRehMQRum4cvkMOEhmKpN7gLdGyaaXXqvSQaL8p7ovLNjE53W2Tv5yXZKIKMf5G CZSQ== X-Gm-Message-State: APjAAAVETX18KlOPI4c3+GP0lmWBWdxpX6ZHdi0pscy9sKGBmqNDwVLP 4BNE/tlIDXNe3zhFYMXOPqKRYrf3 X-Received: by 2002:a17:902:bd06:: with SMTP id p6mr31370665pls.112.1559588057354; Mon, 03 Jun 2019 11:54:17 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.89.153]) by smtp.gmail.com with ESMTPSA id d13sm25827511pfh.113.2019.06.03.11.54.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Jun 2019 11:54:16 -0700 (PDT) Date: Tue, 4 Jun 2019 00:24:12 +0530 From: Hariprasad Kelam To: Greg Kroah-Hartman , Carmeli Tamir , Nishad Kamdar , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] Staging: emxx_udc: fix warning "sum of probable bitmasks, consider |" Message-ID: <20190603185412.GA11183@hari-Inspiron-1545> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Knowing the fact that operator '|' is faster than '+'. Its better we replace + with | in this case. Issue reported by coccicheck drivers/staging/emxx_udc/emxx_udc.h:94:34-35: WARNING: sum of probable bitmasks, consider | Signed-off-by: Hariprasad Kelam --- drivers/staging/emxx_udc/emxx_udc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/emxx_udc/emxx_udc.h b/drivers/staging/emxx_udc/emxx_udc.h index b8c3dee..88d6bda 100644 --- a/drivers/staging/emxx_udc/emxx_udc.h +++ b/drivers/staging/emxx_udc/emxx_udc.h @@ -91,7 +91,7 @@ int vbus_irq; #define BIT30 0x40000000 #define BIT31 0x80000000 -#define TEST_FORCE_ENABLE (BIT18 + BIT16) +#define TEST_FORCE_ENABLE (BIT18 | BIT16) #define INT_SEL BIT10 #define CONSTFS BIT09 -- 2.7.4