Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp308408yba; Wed, 3 Apr 2019 09:07:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqy6g8ThcEy9+iygO+JOsf8aZ93rW1tsO+GlvBpwFLZz9lWjnBsTyV+Bb9oRld79/LJ6tfFr X-Received: by 2002:aa7:8552:: with SMTP id y18mr226240pfn.176.1554307651377; Wed, 03 Apr 2019 09:07:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554307651; cv=none; d=google.com; s=arc-20160816; b=d6Yr8/YoN188UYcoQ54mAjTRpxQH2iYzMKJs2aXUKjoYMpUCrOFLH0kFZQr7WDg8S9 DaNXuSuz+pGGfM5zsNZ0Ba3a1H4BBpgeovr1o/c6NQVXQe8VixSO0j3PwjujkRTM2xN3 8fjLnI6xAqBulzgWbYmu/1Shnmk3C/7hqZb3PMlq/I1WbE3WSLNroTP3Jl1+AKqMxKix hIGEw3tEflAQoN8t7pWDQJyU1qeJkqVTQ0XWXmcxqQ/+nO2LmejLKcMzAh8O3foSJy1B Esmq0xAuS6aNQKf+ekzLT4hJ6UaeAK+ek3wjUvD27BHEkvVofBLheS4LXut4FwsgHngu asdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=fThzfm/a7c6EB2K1/Wy30MMxdASyeayvFiL8HhwazfY=; b=vYXDOEALNGMgmeebuf0XNcLnxfcCkdIWJGuUQhIgxWdm9tka9AnSNW8BTLnHE/ZKSc h8rUU/bUTviyzjlAye9vKzaWfRshWFvmvlPZy/5oa0CVROZ/r+4LJ6grFyjbM8/+QyJs +2E0CWIya4/CJ4EHmairleuz8NiSka+OMGIklfMDWmu/fzaphqKgtNAcpJlClMvfyr+0 KkSDz1Fxr5toZxlauYKB+VmtTH2jODNr+14QM97/wsw7i5K9rYEdFPR78Zp+5MslBU0g iu7OeDH2lojomRg1+KoPcXgjW0BBkU4nPBVRHfKzTvh5MhqsbJyBK4vXCNhtb5AM0RBx /YPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=unEY+XY0; 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 g5si14096348pfi.60.2019.04.03.09.07.15; Wed, 03 Apr 2019 09:07:31 -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=unEY+XY0; 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 S1726721AbfDCQEt (ORCPT + 99 others); Wed, 3 Apr 2019 12:04:49 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:42532 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726099AbfDCQEt (ORCPT ); Wed, 3 Apr 2019 12:04:49 -0400 Received: by mail-ot1-f68.google.com with SMTP id 103so15856498otd.9 for ; Wed, 03 Apr 2019 09:04:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=fThzfm/a7c6EB2K1/Wy30MMxdASyeayvFiL8HhwazfY=; b=unEY+XY07+QBsUubkYjk4tAmuD5byOL2sqWwEREvrkJp8897pK0y8gH09MibXeJ1TL hMKb78QrA1znBaQbduso8TbYPv4auj8zbCxlhMPMAKtlPwAAf4f4ywGHc4IrOsjkLYI4 lpNm6yiPOHuuiS9UEEVrLdDI/l0Zn8wFFAyjXvJPhVxdfQtflj7se2dltJA7fhmwenjR SzbP81thPQMNuGv5LYOuuf+ppPItRtumk0pjL+oazPOn8pJOl3T6Tsgx+4zw8up4E2In dqi9rdlBSIMxYHuun4xBhvljW3OEVmai8H7bitcMJS0IZpO0+iI7gsTuBoKniLFj8oIh 2zVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=fThzfm/a7c6EB2K1/Wy30MMxdASyeayvFiL8HhwazfY=; b=A5xa0VsCQ4d+EQibWrEfrHTjq4Rqhqpz0kXsniNBBRC1G+hMM6QmKcwEn2nrDFrTGk wfOs0MMehyuh/Kjt6ltqAJfagCCnOSoJYI8qxxao3egUbEvWdKtcCv9avlXZUEMUj4an IUZKv7NJOOpECRE7CZfZIxksnBzikz+Te+mGSe1q0guyKhV2abYkjumyBbLm8gm4iM30 XB0Lhd8iwFAxUXefNuT0CtrQx4x5NlLB+ElyF/+tkA6MqB/9LxFZWzyn4TY5IwQQO3+B /KihDuJ6IS4OedW7LpGegs5ayIb554xZ5zJQz07fXDfuDZXbD/k2a8B136/6HKjrYVFH eS6g== X-Gm-Message-State: APjAAAXBCAqpPcCZzI8ZYig2xeoDXbEx5Enk0xTry8nhuIpawzkEwmJr 5aueUpUApAlvRkCWL7BC5Ho= X-Received: by 2002:a9d:4c8d:: with SMTP id m13mr188504otf.145.1554307488164; Wed, 03 Apr 2019 09:04:48 -0700 (PDT) Received: from madhuleo ([2605:6000:1023:606d:1876:bc0b:8981:17be]) by smtp.gmail.com with ESMTPSA id s124sm6521160oia.24.2019.04.03.09.04.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 03 Apr 2019 09:04:47 -0700 (PDT) From: Madhumitha Prabakaran To: gregkh@linuxfoundation.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Cc: Madhumitha Prabakaran Subject: [PATCH] Staging: rtlwifi: Remove unwanted parentheses Date: Wed, 3 Apr 2019 11:04:45 -0500 Message-Id: <20190403160445.11110-1-madhumithabiw@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove unwanted parentheses around right hand side of an assignment to make code better and more understandable. Issue found by Coccinelle. Signed-off-by: Madhumitha Prabakaran --- drivers/staging/rtlwifi/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtlwifi/core.c b/drivers/staging/rtlwifi/core.c index a9902818ae7e..970343048b69 100644 --- a/drivers/staging/rtlwifi/core.c +++ b/drivers/staging/rtlwifi/core.c @@ -341,8 +341,8 @@ static u16 crc16_ccitt(u8 data, u16 crc) u16 result; for (i = 0; i < 8; i++) { - crc_bit15 = ((crc & BIT(15)) ? 1 : 0); - data_bit = (data & (BIT(0) << i) ? 1 : 0); + crc_bit15 = (crc & BIT(15)) ? 1 : 0; + data_bit = data & (BIT(0) << i) ? 1 : 0; shift_in = crc_bit15 ^ data_bit; result = crc << 1; -- 2.17.1