Received: by 10.192.165.148 with SMTP id m20csp5193838imm; Tue, 24 Apr 2018 15:40:40 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr564ZU9ZPiiKUsrC1OdpLx04pcwWKapBCNKKtznlK/J/FbW7XSdNXqKxt1sNed9zP3AsSP X-Received: by 10.101.99.73 with SMTP id p9mr1245851pgv.111.1524609640453; Tue, 24 Apr 2018 15:40:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524609640; cv=none; d=google.com; s=arc-20160816; b=m9XG84lWdp3AEfaR2FYgxrJy4dBmT5z4Wt805Oar0vOcikXZCoJNKJuo5ZpKY1DoBT dS7SVq74o6bQXDR0gCoupDOAFojEtleRQzZY5JjbfSluvsy0RVN//7mGEBSCM8rC9Niz 2UBimbIJeUWhK8TJlBCF8K7F3Zf7tBWfqbPAljrFfdcde+xpD0yEVj7qs9Imyb4XLjYl CZhHnSQ5hAIAWyzBf2IpSFNbiVWk8kE7yov9+6u4DAko2PMi54Q6orDiQr4Pn3i0x4gl HXRKDHwrTxIGZrUGSUdRiDHC5qP5b+eCZm7+SZMt+LS3EL7j7/xOSz5nn5aUxgNyk4Lc ZoXQ== 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=hRbI88s0398+vs/dN8tr4temAb9U7AmbjomqwmNNWys=; b=OJk/C8nx6dNEh8oSeLjZOwFdXpg8qpES4DktAmX6sourrEPEFia37xHCMwLCjVG+9g AxKZG1+IRNmArEAqoFHYjokKfrM3YnOCQjCTbddPPJA0vnQebSd5QyCtdJ/mamOltl4S ywBB/CbfrlR+dLWbGGH35Y/mbrQHmoGqCr5zgtIxd5F/vNFVygy4gIgUY01Aje0Dbd7H 0exkGvtdJT0qb6KB9bZpn9YWciHU27RfcEcRIu8qX+dsngrAfjUr/+2x/FrBx9WQBYKG q4CdD7IEXnPemYMA349j6ckTEwl2v7LeDsdQTNCbg1ppp4qnNHC5vialejhck9/HPNKU yV9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=R4jSLKgp; 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 z21si12879863pgn.570.2018.04.24.15.40.26; Tue, 24 Apr 2018 15:40:40 -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=R4jSLKgp; 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 S1751195AbeDXWjV (ORCPT + 99 others); Tue, 24 Apr 2018 18:39:21 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:37123 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750786AbeDXWjU (ORCPT ); Tue, 24 Apr 2018 18:39:20 -0400 Received: by mail-pf0-f194.google.com with SMTP id p6so13456800pfn.4 for ; Tue, 24 Apr 2018 15:39:20 -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=hRbI88s0398+vs/dN8tr4temAb9U7AmbjomqwmNNWys=; b=R4jSLKgpj1yPBEmbb8yxwkaSjS82CF4f0BwstqogYtfqxIilh5ntv5ElGb8/GB4fm8 6WNpx9UWtrxBA+2SD1qMlr+nV2Sv3gR//fFKwgopKadNcQ6DhCHR/2gBFZjbt/ycvFXo VZQ4b87VBFtu94KEXj568P+D5wl6Rgfqz0sj8Pi743wWe5alzjyBDGTz94HNiJbNxktJ BDQ6dLhmcT0vZOClfzWAGQLWCiJ0TyY+IwhCHxb6qPia2wxCrXqRUjuOAxu42e8yAAaL 0E95LQiB17pfVbLA05jN1pzziu/Eg7fLiqjhXkK4tfPm6381zbXgsKL4Y9HGJHf2VTnn AwKA== 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=hRbI88s0398+vs/dN8tr4temAb9U7AmbjomqwmNNWys=; b=SP6JrzEhD2FFZj2FEZX4rnf8OMeV4vxS4kzXOd8xLAfQvkb7nokCdpYIW3re/YBOx/ w0DnJpy2zr7cLclu4NEs01qeBTW1T8rUp7eZUw3KK2vLABznmMnDydUmE1vb6tOrVXZA iE1WuR3TRojcH7vvxGaSS9vCT+AkxwZ04EG1ygr9j64hOStvdS2yeemCSEJEYZpPZXJU tMwDv8MIFEEUaP8k8A3/HXDwvHQQ9tLdk53WFs4/RvfvuWQb352Uez5EwfJ9mb9svrKn qofqU27WlC9+IIZ8MzW9sV8CpVWYP1tKcMQAMxsVyqP+/eeGIWb/CEmZIXSf9TZm/zg7 vuDw== X-Gm-Message-State: ALQs6tASWkhUI5MUP9Nz898NzMqliCUJFhpppaKPTe1upNvFsdDIuK67 Zhc9y1TtUTnbvcRZb/NYyBLlZQ== X-Received: by 10.167.128.4 with SMTP id j4mr1087014pfi.52.1524609559791; Tue, 24 Apr 2018 15:39:19 -0700 (PDT) Received: from hobbes.alyptik.lan ([2605:e000:1117:c0e3:2e0:1bff:fe70:ea]) by smtp.gmail.com with ESMTPSA id g26sm883244pfh.76.2018.04.24.15.39.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 15:39:19 -0700 (PDT) From: Joey Pabalinas To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Arnd Bergmann , Jiri Slaby Subject: [PATCH v3 0/2] tty/nozomi: general module cleanup Date: Tue, 24 Apr 2018 12:39:13 -1000 Message-Id: X-Mailer: git-send-email 2.17.0.rc1.35.g90bbd502d54fe92035.dirty Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The nozomi module has a few sections which could use a bit of cleanup; both style and clarity could be improved while maintaining equivalent semantics. Cleanup messy portions of the module code while preserving existing behavior by: - Replacing constructs like `len__ > TMP_BUF_MAX ? TMP_BUF_MAX : len__` with `min_t(u32, len__, TMP_BUF_MAX)` and function calls like snprintf(tbuf, ..., "%s", ...). with strscpy(tbuf, ..., ...). - Correct inconsistently indented lines and extraneous whitespace. CC: Greg Kroah-Hartman CC: Arnd Bergmann CC: Jiri Slaby Joey Pabalinas (2): tty/nozomi: cleanup DUMP() macro tty/nozomi: fix inconsistent indentation drivers/tty/nozomi.c | 100 +++++++++++++++++++++---------------------- 1 file changed, 50 insertions(+), 50 deletions(-) -- 2.17.0.rc1.35.g90bbd502d54fe92035.dirty