Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp13544362ybl; Sun, 29 Dec 2019 14:37:02 -0800 (PST) X-Google-Smtp-Source: APXvYqzQlORHfUAJAG3lh4S4ZWWpPaQJSgmJyI3u9JVmemLfzwo+PQGLTncqvUgygS6F1vIanh0u X-Received: by 2002:a9d:4e97:: with SMTP id v23mr66925029otk.201.1577659022732; Sun, 29 Dec 2019 14:37:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577659022; cv=none; d=google.com; s=arc-20160816; b=dZ5bi2Z1JZ6jgHkf5+mWpmgQNhzWz9eEzdpaPql4WrnapgzWNoxfYCsZp+e+nvtGMP +LAoTw+c0PQEdIdk7ba957eYppKvRZ2n2y9+BHK2tfNuMiDTHh8tUzzNy++1MM49cW7m HHKTt3GrnxRmsEYK1qj7VqGq+6ZqM6IbKNmRKXdT4kxt116mf33YygaChJzq3O1iKTM/ nnPlbGJd8E0bctQ0pPBQGQjKnXSJM+Pr5/TVoQFah+8ejDDV9EFeP6Y6O1LOvtJTa+Pk 3/+MV8Cj3+6f6mmVTC72Uu0HFdYNVy6agctUrmpHHtGf9sPj84ZfvpoIEMnr3Vkwwf+7 CEZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=f0XyFhJxaSBsnLc48u6S2zxUb8AEk9qkcHvQljdmaTU=; b=tZoaYv7Sn30/BnFrUVV1dK2FPLqrHR/YdXSauvocU3VKaYyf0jM4yY2MHGwqp3WRLA afMx3Cz1AN387026tbdzWgXKhcJ/y8mP01Bmsny0TU+s14RWVXD2AIjhPmj9tErvMhW8 QevhxJhRp3ggqykDg9TRdtmRBGqp0YQ7DVa9/++Tmj+tHCuq0I+MypsdTW6KTyArfbaE dd6Y88SaQrtR/GoymZTZi5N2ZpkBf11gNIUE/9YovjiXzUnxuKH9t2Cb64KqOS4jDmCY +umsrCIiGBjntmHetXsSp3CGwHGnlrA3oSbL/STQyjzQO/rzbKv7dQp9EyYXekGGV6Yk 848A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AEzg80a4; 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 h7si19570904otm.165.2019.12.29.14.36.30; Sun, 29 Dec 2019 14:37:02 -0800 (PST) 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=AEzg80a4; 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 S1726621AbfL2WcE (ORCPT + 99 others); Sun, 29 Dec 2019 17:32:04 -0500 Received: from mail-qt1-f195.google.com ([209.85.160.195]:34290 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726490AbfL2WcD (ORCPT ); Sun, 29 Dec 2019 17:32:03 -0500 Received: by mail-qt1-f195.google.com with SMTP id 5so28602224qtz.1 for ; Sun, 29 Dec 2019 14:32:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=f0XyFhJxaSBsnLc48u6S2zxUb8AEk9qkcHvQljdmaTU=; b=AEzg80a4E/lCAAF6qfluK2eflndpb9glCkRlugCIji4phnCLE+0W2wIJ02plJqYent Jo6nvfIBtX6sJO1WlPmf25BoARnvJL02Y85423L9EGtRGWEDnlpvSXe4Qv7cgt3Lw8tb 82/+A/IdCZ4gizrtBYmbcDFzOhBAEOfrfgpL4VaehSFZ9IRtyV36xLGGmBKYR71S3C6F qawZPxmfhLWHkS32iBgCDhRk2X5MvyIpj4ta1qCmN8XIQaxy/d1FD1q/IfmWBzYdXRHh HCiO7xWpa3o5KE/7+NFlC6Mt1mJF6RsMbcedZxgMGbG5khDb6s7nowKOcYxT+6cWHTAj tscQ== 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:cc:subject:message-id:mime-version :content-disposition; bh=f0XyFhJxaSBsnLc48u6S2zxUb8AEk9qkcHvQljdmaTU=; b=iITUdNYTHyKszP2vuCyhK03KJKtNX3EYrI6zL6WnaX/N9Zo8Lsi6gtFV3lTfQ4wfqj wG4S4cueoX5QC7U8eZLGj1OqEy7Y2bsGvk4WbWWKRxNszWKQCF+WP8w2tDz5O0/WnGuz nvgMXJCVAtRbb0HAwC9JZ9lywNHumrKw/NIYSUSqGTbL0prs0JKNzj5x7yne/wBzU9us cidqEpTx8OmKhC67edjmLstmWyUlmRF7lYDsabsDAvHYTj8Fxj6cmcOSpnDPDHuOfBcd YJaxup5MlhErm8McaaZ5qDU95Y9PZAKPOb/Vkj03/KovtxiLaNX+a4SWkMuEiRCBSdN2 7VVA== X-Gm-Message-State: APjAAAXEDqDm/8GB0Q/50YcLsSZ0VP12bqTa7z8wXIbXyrteUexeuUtB fScAqNmPNvl+0uZvPsRjZQ8= X-Received: by 2002:ac8:32ec:: with SMTP id a41mr47149306qtb.235.1577658723029; Sun, 29 Dec 2019 14:32:03 -0800 (PST) Received: from mandalore.localdomain (pool-71-244-100-50.phlapa.fios.verizon.net. [71.244.100.50]) by smtp.gmail.com with ESMTPSA id p185sm11897433qkd.126.2019.12.29.14.32.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Dec 2019 14:32:02 -0800 (PST) Date: Sun, 29 Dec 2019 17:31:42 -0500 From: Matthew Hanzelik To: jerome.pouiller@silabs.com, gregkh@linuxfoundation.org Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH v3] Staging: wfx: Fix style issues with hif_rx.c Message-ID: <20191229223142.5pxmmu7sfwdtcn7d@mandalore.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the 80 line limit warning on line 79 of hif_rx.c. Also fixes the missing blank line warning on line 305 of hif_rx.c after the declaration of size_t len. Signed-off-by: Matthew Hanzelik --- Changes in v2 - Make the commit message less vague. Changes in v3 - Place the break after the cast operator instead of breaking the line up. drivers/staging/wfx/hif_rx.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/staging/wfx/hif_rx.c b/drivers/staging/wfx/hif_rx.c index 820de216be0c..b31ef02ea5d4 100644 --- a/drivers/staging/wfx/hif_rx.c +++ b/drivers/staging/wfx/hif_rx.c @@ -76,7 +76,8 @@ static int hif_multi_tx_confirm(struct wfx_dev *wdev, struct hif_msg *hif, void *buf) { struct hif_cnf_multi_transmit *body = buf; - struct hif_cnf_tx *buf_loc = (struct hif_cnf_tx *) &body->tx_conf_payload; + struct hif_cnf_tx *buf_loc = + (struct hif_cnf_tx *) &body->tx_conf_payload; struct wfx_vif *wvif = wdev_to_wvif(wdev, hif->interface); int count = body->num_tx_confs; int i; @@ -302,6 +303,7 @@ static int hif_exception_indication(struct wfx_dev *wdev, struct hif_msg *hif, void *buf) { size_t len = hif->len - 4; // drop header + dev_err(wdev->dev, "firmware exception\n"); print_hex_dump_bytes("Dump: ", DUMP_PREFIX_NONE, buf, len); wdev->chip_frozen = 1; -- 2.24.1