Received: by 10.213.65.68 with SMTP id h4csp751091imn; Tue, 20 Mar 2018 14:32:21 -0700 (PDT) X-Google-Smtp-Source: AG47ELvwx6YwxKQVqmkauiEi0myMSOnauvmNgK0qrxnrfGto6B6v7mTpDJVOTZvT9/htc3fCEZHa X-Received: by 2002:a17:902:b703:: with SMTP id d3-v6mr17772802pls.209.1521581541598; Tue, 20 Mar 2018 14:32:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521581541; cv=none; d=google.com; s=arc-20160816; b=lcRAfvJsVFGPs2oQT+W0K6tcV+Z5DTtkR+dG12fk3R4iNu+l9OnUP+cGsb058CQdEC 0JC9DgLSxQceCgSLm+KhVTwxI8rsf7MlRqOoDecj/XF/EwuIDQK0ozDO01RAG46OBQar NCKaHivHKNVtgchKi97sS8PBbnJFZ7LEqDEU4pyVu4lOR5WLmCK1lcrtAGSEx2ersmhT AEX4zYhA/VbwAYERQ/eBD8FFytHd1A1VlNg2sWyi6/QF/a42ReSl7zMkThPmWndjk7me 2pmIRIlbVfPOI8lj2gG0346obJBKjAr0Nvn60W7uLx7Afr+ls8XI209U/A98ANCthCNL rqpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:message-id:date:cc:to:from :arc-authentication-results; bh=dEOSzBpPGLbrGDHXTKYzj40oMTze3wcXaX4iaSyeNvc=; b=cZ+L8LdUMKoBQJR+sL5kq5ySsk7nNS7k3WYKgiqq+fU8nl9/hdseoBdQUAiv9MNuFY UWuDefXtzQzM5pyF5glbKVwB55sqnvMCqGGn8ZRPCykHVEewhefAOEoajBldQj8zr/S1 UM4xbMfPWAvbmcTG5F7Ou5KWu1apsBeyGxW+bN/kvQ0N1iUX4UsPJn4ld79qgKLbZFea 20o6fLWRunFhWMGT5T0zs/n6/vXg2iTnPwp2y07uOTE4k+8y7D1b2V/gxAXrbfJxzFeD PO0eGHXtc52uZgUz1Y6JbLRtPmoVbQIv9YGpxDclUMmIcEZ+cYZs97BLAjp2i5VBBCL2 16XA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t9-v6si2274525plr.558.2018.03.20.14.32.07; Tue, 20 Mar 2018 14:32:21 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751673AbeCTV3T (ORCPT + 99 others); Tue, 20 Mar 2018 17:29:19 -0400 Received: from mail.CARNet.hr ([161.53.123.6]:37263 "EHLO mail.carnet.hr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751661AbeCTV3O (ORCPT ); Tue, 20 Mar 2018 17:29:14 -0400 Received: from [2001:b68:ff:12::131] (port=34214 helo=gavran.carpriv.carnet.hr) by mail.carnet.hr with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1eyOod-0008U8-NP; Tue, 20 Mar 2018 22:29:08 +0100 Received: by gavran.carpriv.carnet.hr (Postfix, from userid 1000) id 7F1D3243F9; Tue, 20 Mar 2018 22:29:07 +0100 (CET) From: Valentin Vidic To: Greg Kroah-Hartman Cc: =?UTF-8?q?Simon=20Sandstr=C3=B6m?= , Marcus Wolf , =?UTF-8?q?Luca=20S=C3=B6the?= , Marcin Ciupak , Michael Panzlaff , Derek Robson , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Valentin Vidic Date: Tue, 20 Mar 2018 22:29:05 +0100 Message-Id: <20180320212905.23568-1-Valentin.Vidic@CARNet.hr> X-Mailer: git-send-email 2.16.2 X-SA-Exim-Connect-IP: 2001:b68:ff:12::131 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on rigel.CARNet.hr X-Spam-Level: X-Spam-Status: No, score=-2.9 required=10.0 tests=ALL_TRUSTED,BAYES_00, URIBL_BLOCKED autolearn=ham version=3.3.2 Subject: [PATCH] staging: pi433: cleanup local variable X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Rename temporary local variable and add required blank line. Fixes checkpatch warning: WARNING: Missing a blank line after declarations Signed-off-by: Valentin Vidic --- drivers/staging/pi433/pi433_if.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c index 583b3803cf38..d1e0ddbc79ce 100644 --- a/drivers/staging/pi433/pi433_if.c +++ b/drivers/staging/pi433/pi433_if.c @@ -711,12 +711,13 @@ pi433_tx_thread(void *data) while ((repetitions > 0) && (size > position)) { if ((size - position) > device->free_in_fifo) { /* msg to big for fifo - take a part */ - int temp = device->free_in_fifo; + int write_size = device->free_in_fifo; + device->free_in_fifo = 0; rf69_write_fifo(spi, &device->buffer[position], - temp); - position += temp; + write_size); + position += write_size; } else { /* msg fits into fifo - take all */ device->free_in_fifo -= size; -- 2.16.2