Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1356881imm; Fri, 11 May 2018 15:13:33 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrnkCpEnr7xLf5h1+pEyBGvkxM1B1O4/+L4Rv0qEOA0V9OIIRDQPDwjqBt3YfersYbyhrQK X-Received: by 2002:a62:ec6:: with SMTP id 67-v6mr582467pfo.36.1526076813364; Fri, 11 May 2018 15:13:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526076813; cv=none; d=google.com; s=arc-20160816; b=ew+B5z1N/M90+auWFGUt1wSOhv5aK/k6ai9gfc6XbU2mAjAFdttLwrZNuk558NP2b8 vRTGUaFHdhE1ZUh0jAgJ6eTg0Cm6BY/6t1C+g6d3PWtXFG0V8HP8AEcxv6cr+Mq/uJts 5bRoUdpgx3prTcBOmcZ3xGI0uAPxbJHMa7hrGSd4JxHDrLPixzh9bjhNFQo4VVesPUNT kXi9wGINbiAUkOSD074PIxqq2wm4N+xhdwsYFK85YxS0Bh2zEDan7yXvyEnIIlutwrVe vWGjh+aR7dT5unlmfABIcRTghK0GNCRph69t0sCI4gPe1UT5btpmkNiUwlQLc3UMs0SL DckA== 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:arc-authentication-results; bh=nxUD5QQP6VlQ21RPbFxEuV2MkzoIke1vE18dWgNEJUA=; b=buz5vGX7jmLrzHrFhCO8or3hlmkNcZiE/Y40ER3szFfumxsqXLPCH/UI9zYUYswal+ 9ix5oRlCVNPLR93Yq34Z4bS/E3cQoI/ccwuQNVozrlmEq6WD9wIJsQq842s9M0o2oxag 5C7Ft7lZqikBDnJPfZu30LFccQFwlG4rp1oqg1ZZHXvWQ8vVBTtk9CFyG3+42k2GE9KN ON8rO3EMZ4n+rx8X2qarqeFA337cCEGpDmIhkfwclnIPWClcIJk0L91XnSId1fI89ZSs gSpcqTzTGGm5yWK/L/lPvuvHHAhLoz1pXqK924Z2wowxPa2+KVdeEg+egnWjyFS9tGCs N2zA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HBY2htt4; 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 t185-v6si3223751pgd.487.2018.05.11.15.13.18; Fri, 11 May 2018 15:13:33 -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=HBY2htt4; 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 S1751698AbeEKWNA (ORCPT + 99 others); Fri, 11 May 2018 18:13:00 -0400 Received: from mail-ot0-f196.google.com ([74.125.82.196]:41338 "EHLO mail-ot0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750876AbeEKWM6 (ORCPT ); Fri, 11 May 2018 18:12:58 -0400 Received: by mail-ot0-f196.google.com with SMTP id t1-v6so7899972oth.8; Fri, 11 May 2018 15:12:58 -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=nxUD5QQP6VlQ21RPbFxEuV2MkzoIke1vE18dWgNEJUA=; b=HBY2htt47P5xpmowbZM7TfvZegC7CMOCeGqsPrryxK5YneyRwW1kGOphdpcESfUePp TvZ+T1k/QHREdm6nxrZCYINohHjScgMrop6Myj+bX9X9LWTayWRvXipzF00qWMJKtH8A mwL9Q80d2M6nzyRDdj5UfpBjvBJIzxBrimUZlC8isn4w86VyxAzmzSEYD8p9NZTbC7pu puR5FpBDNQdJeOpLjC+jo6OXZMUAO10+kFrxNQHhv87JMj1GFDqw9dm89Tzkg3McO8m6 pu9Id8v7VAuENPde+ZDbzLxAVoLxFTgIpEwjtWLmMcDTibjI6NT8GiKfm3ipQpVlGCmP g8fA== 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=nxUD5QQP6VlQ21RPbFxEuV2MkzoIke1vE18dWgNEJUA=; b=dFvE4xkCOJKcbjIHVHXq6cgx6h9+feNXwCQOIH07Pyu2uXkuYSYjcon3Ej1RdO5CRl xLEvdbDCcX70cXrBPmHatv+jgQrQfozobltuMEUQEZZSAt2z80oP6mP4n7gBbOQs0SYA d0qOaHQJBgOMlcCGx11NBylPlDGodLtysPRthNjoLdOcWeVv0XzrwP04pdSU8qCzjtZ4 0Q4Me1TiUAbiVOddYl7Qn6CyIgftC/UQqWWSBOD2gTK9EDLtLWrr1Ve3P2t7yyNBftWQ S+g+/9JMzL67ebIRmJY2PXFu2LkVWJfJUNVVrAgz8iuV+ATNC5f3D3vQ5e1MKJ8Il55N 4IbA== X-Gm-Message-State: ALKqPwfZKz30gactGLE5peSmNhorIP64OM7O1AyJUVwUrUwCL4UXxRet OjFdfXKKRFYDsFgFQICR7+s= X-Received: by 2002:a9d:172d:: with SMTP id i45-v6mr5586179ota.43.1526076777971; Fri, 11 May 2018 15:12:57 -0700 (PDT) Received: from ubuntu.localdomain (cpe-76-185-95-177.tx.res.rr.com. [76.185.95.177]) by smtp.gmail.com with ESMTPSA id g98-v6sm2359763otg.64.2018.05.11.15.12.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 11 May 2018 15:12:56 -0700 (PDT) From: Vaibhav Murkute To: marcel@holtmann.org, johan.hedberg@gmail.com Cc: linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, Vaibhav Murkute Subject: [PATCH] drivers: bluetooth: hci_serdev: Removed unnecessary curly braces Date: Fri, 11 May 2018 15:12:32 -0700 Message-Id: <1526076752-5871-1-git-send-email-vaibhavmurkute88@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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; -- 2.7.4