Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754812AbeAHRjC (ORCPT + 1 other); Mon, 8 Jan 2018 12:39:02 -0500 Received: from mail.CARNet.hr ([161.53.123.6]:36740 "EHLO mail.carnet.hr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753840AbeAHRjA (ORCPT ); Mon, 8 Jan 2018 12:39:00 -0500 From: Valentin Vidic To: Greg Kroah-Hartman Cc: Marcin Ciupak , =?UTF-8?q?Simon=20Sandstr=C3=B6m?= , Marcus Wolf , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Valentin Vidic Date: Mon, 8 Jan 2018 18:38:55 +0100 Message-Id: <20180108173855.19366-1-Valentin.Vidic@CARNet.hr> X-Mailer: git-send-email 2.15.1 X-SA-Exim-Connect-IP: 2001:b68:ff:12:6af7:28ff:fed9:8491 Subject: [PATCH] staging: pi433: remove unnecessary parentheses X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: Fixes checkpatch warnings: CHECK: Unnecessary parentheses around 'mantisse != mantisse16' CHECK: Unnecessary parentheses around 'mantisse != mantisse20' CHECK: Unnecessary parentheses around 'mantisse != mantisse24' Signed-off-by: Valentin Vidic --- drivers/staging/pi433/rf69.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/pi433/rf69.c b/drivers/staging/pi433/rf69.c index bdd00f750765..a07fc6bc27f7 100644 --- a/drivers/staging/pi433/rf69.c +++ b/drivers/staging/pi433/rf69.c @@ -391,9 +391,9 @@ static int rf69_set_bandwidth_intern(struct spi_device *spi, u8 reg, return -EINVAL; } - if ((mantisse != mantisse16) && - (mantisse != mantisse20) && - (mantisse != mantisse24)) { + if (mantisse != mantisse16 && + mantisse != mantisse20 && + mantisse != mantisse24) { dev_dbg(&spi->dev, "set: illegal input param"); return -EINVAL; } -- 2.15.1