Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3606981imm; Sun, 13 May 2018 15:52:03 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqq+odGhL73xW1iZGCgkHFid6lckSnv+IQ7ExKeyVl6UqfqEiA+0a6ndOEuXHeHfD+KqGI6 X-Received: by 2002:a17:902:44c:: with SMTP id 70-v6mr7192183ple.354.1526251923107; Sun, 13 May 2018 15:52:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526251923; cv=none; d=google.com; s=arc-20160816; b=wxVrfTEhxqhZc5T1c1jk0PwSxOkI/XpNc2HFkbs/2jom5po6xcWRu/y8UOssDrMXsh FFe4QukjUAO0BGMFrKAHvbbIENIhT8vfSPHjWZqB8MAOYabzffE8pWofWdCSP8vml9lp xewRTl0LiofqdrE91Dx8xzXiINsKJv08UBcOCpGdz0p4IrapIY/pUxgMvvKMhn49dPCM FwfSzfOtSwgtaHGkQugDJhM43tEPPcYi+oMdYC4NLJQkcX7VZqmBcS0x13NNIQgeYXho nWtVUWu/SSlcgzR0v7oOqRoCeabiAgqM/2Lixkp6gomH9gInIaDqKpdcOPIQO9MF9oPT FALA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=p4Y66c161rZF8jF2Vk+a8uyEBYqw7bn2ShDDzdGgA8U=; b=gIWa9eW5s8wRrCmyU5igo1RB1V73r5DvEgBYHjTeHuKyTz7w+nwf/FH3OZeIsvrtC4 zBA4iScdoAim6g8H/kyUP3hPEQSTE3J9tx7Y5gC8ydOgqEZFGlMnKoKEU+Ao219PRDXD +84bD0H043CDHM/r6o2uhil3CoRUHlep6BMZWb1oUw80LeEVgNxkmqYy9qvxv2Nkb2HW pAdC33RKarqmEnsnNP8xq8u9w44imxmQ3CBMVg8EtlwA4pB1mL6lKG+BR5PODsT7vRRZ wd6gT7FBnw1Yzwtn0VsIYsuwVp6ZW9srP9nrYYo6kFpXRgBjZNdmd83BINiXO8/6nj9C BKpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Eu7BPTKG; 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 63-v6si8737765plf.524.2018.05.13.15.51.48; Sun, 13 May 2018 15:52:03 -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=Eu7BPTKG; 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 S1752127AbeEMWt4 (ORCPT + 99 others); Sun, 13 May 2018 18:49:56 -0400 Received: from mail-qt0-f195.google.com ([209.85.216.195]:38140 "EHLO mail-qt0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752018AbeEMWtz (ORCPT ); Sun, 13 May 2018 18:49:55 -0400 Received: by mail-qt0-f195.google.com with SMTP id m9-v6so13892443qtb.5; Sun, 13 May 2018 15:49:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=p4Y66c161rZF8jF2Vk+a8uyEBYqw7bn2ShDDzdGgA8U=; b=Eu7BPTKGnnDjGxRGpTO9oI77kfM4+c29K4fH7pcRTFLOv+mQl4VGiSIsVSmxDoa7m2 XC5RsxT7o7X7CIaF4MYA4MAavnco0ioKYOqwHiDM3YVdrD0ldAQih23P618afey4HTh/ k7RzP7FaaqSjiMp41aymEpxCI/syjdua5OqUzngpyyZFZ3ukiqPVTDh7hDntGgCfJYbo KKxN2Z8aBhQH6sl0d2A6/GbdnTF5D+PRuN/pnRsoYEmMTWm1XyqnBEMVdgbEoXrToZ3U D8+iQI81mux6duknvGQfpIiWhfc3wEpnEqxM9LFCpPrldjUKXkOnltMRvctpD2yEYyXP ryMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=p4Y66c161rZF8jF2Vk+a8uyEBYqw7bn2ShDDzdGgA8U=; b=kvAuxMqNMNlclphsbk7ZzjYYuMuxKUUdwy/WiqP3n4EAICTN2TV26BJkLz89Fcdb8x dsZy+v4bnh9AN28449iBKgTs1vO9FDbEPeYTK2vT8Jkd81hOtunLsU2YFY4RY8wsXsFE r2SqJ15KsQV1M0aqN/WdVB8jttLFYFIyJ90qJfvYBunZAXNRp+W7QJBCNeWhj9Ugl8EI iIPNGS9M+82gvNzuGXtB7Vx3gOEoiF+3ulwG/oqaoLZ9g78SqOEQiTQkDA8oitdSCfEu t79sGSMfq5Tx7GguorcTe23bewtCVz0nEH+lKmgGBvuhOMmz1IGE41Y8yxxU2iI7mSP+ mo/Q== X-Gm-Message-State: ALKqPwfOSz24cOzgJAv8sc66rtmLcA0nNu/jeSiKHdUM8SuMZQdGBxuU rt/q04CQBDNDZRG5zSH5Cf9NSh6kQgjnwkIwfMQsbb1k X-Received: by 2002:aed:3dcb:: with SMTP id j11-v6mr6253989qtf.404.1526251794552; Sun, 13 May 2018 15:49:54 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.152.150 with HTTP; Sun, 13 May 2018 15:49:54 -0700 (PDT) In-Reply-To: <1526076752-5871-1-git-send-email-vaibhavmurkute88@gmail.com> References: <1526076752-5871-1-git-send-email-vaibhavmurkute88@gmail.com> From: Andy Shevchenko Date: Mon, 14 May 2018 01:49:54 +0300 Message-ID: Subject: Re: [PATCH] drivers: bluetooth: hci_serdev: Removed unnecessary curly braces To: Vaibhav Murkute Cc: Marcel Holtmann , Johan Hedberg , linux-bluetooth@vger.kernel.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, May 12, 2018 at 1:12 AM, Vaibhav Murkute wrote: > checkpatch.pl shows a warning for these unnecessary curly braces. > so just removed those curly braces. > > Signed-off-by: Vaibhav Murkute > --- > drivers/bluetooth/hci_serdev.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/bluetooth/hci_serdev.c b/drivers/bluetooth/hci_serdev.c > index e0e6461..137c314 100644 > --- a/drivers/bluetooth/hci_serdev.c > +++ b/drivers/bluetooth/hci_serdev.c > @@ -204,9 +204,9 @@ static int hci_uart_setup(struct hci_dev *hdev) > return 0; > } > > - if (skb->len != sizeof(*ver)) { > + if (skb->len != sizeof(*ver)) > bt_dev_err(hdev, "Event length mismatch for version info"); > - } > + > > kfree_skb(skb); > return 0; Why did you add redundant empty line(s) instead? -- With Best Regards, Andy Shevchenko