Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1800256ybt; Sat, 27 Jun 2020 21:34:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6zXXk7P2/CGtcH2UOoUjUK17Mc2hWByfRBATEgJCCowowMMla4Y52LIwtu7VLteVdId7c X-Received: by 2002:a50:f009:: with SMTP id r9mr11491018edl.72.1593318867281; Sat, 27 Jun 2020 21:34:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593318867; cv=none; d=google.com; s=arc-20160816; b=d96hSzIrJMLTCt+YB+lN0vnDa0H8RnzcBX1G1KAaqFWMC6LBr5OLg1VZNIBtUHDnbI DkZcPDvS9wVYYJEXXd1ib9g8to4CndbYc7J+HfXO61sIG9mzxCKuNCuGhfF0EPrkKZq4 2RGV0vfpJjoI1b029gBy48NCWwaKBSwX6LNTVU7dX1ajr7ATWuZV85Xr+tEYoGE5EYra PD0qbwT5eYYesJpwN4m/BOwJ85/wBrIoFGLDtfOFmTo4FJkUZUYin9gGQ0oXLRBRtg4g 9ULpeL6lLyukookXY2XlWYamW5mfwqZ8LcKH7agAhFciDrwwaWqPeq0HGUaqcnl+DRdZ ayog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:from:references:in-reply-to :message-id:cc:to; bh=C4lSYJPF05vZ4XlE1FMQlSrtYHNmLelvOwq/q60EvVE=; b=znAZEmIaSVpjsB1AFYN3pOdqExrtOxLjzBswYKANt+ifkv7JdjGuU2KGqI9/XgqxAV C6S6zy8wOdYrJTYQ4TL8xggyfh43V0qQtYgGHfFrp02dIiejDJojt3Vb6cRG96ExkC2n xVCHFZKRChziTEFYUmmS5O4GDOcyPIdghItjHXA5cGt+E+OGWmeulKiid5iSx0Jc2L/M ygMin511B8nLXtJksl7TfbX3UBRxqsCrF5DsPyExSy85YJX+LBU79QAA/RLB/nUZZJa9 BQTMHlbsdVptWzXkRYM7H/gHFotPEiWCYs+q3ndKoKOSfAcQVAogb/Po0i8cwWYTmHhp PtHg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id eb10si26753243edb.410.2020.06.27.21.34.05; Sat, 27 Jun 2020 21:34:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726174AbgF1EcO (ORCPT + 99 others); Sun, 28 Jun 2020 00:32:14 -0400 Received: from kvm5.telegraphics.com.au ([98.124.60.144]:34320 "EHLO kvm5.telegraphics.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726076AbgF1Ebr (ORCPT ); Sun, 28 Jun 2020 00:31:47 -0400 Received: by kvm5.telegraphics.com.au (Postfix, from userid 502) id B339B2970D; Sun, 28 Jun 2020 00:31:44 -0400 (EDT) To: Benjamin Herrenschmidt Cc: Joshua Thompson , Geert Uytterhoeven , linux-m68k@lists.linux-m68k.org, Laurent Vivier , Mark Cave-Ayland , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Message-Id: <779551219a11b19e574dfcd87e4ef60af08c4fc3.1593318192.git.fthain@telegraphics.com.au> In-Reply-To: References: From: Finn Thain Subject: [PATCH 6/9] macintosh/via-macii: Use bool type for reading_reply variable Date: Sun, 28 Jun 2020 14:23:12 +1000 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Tested-by: Stan Johnson Signed-off-by: Finn Thain --- drivers/macintosh/via-macii.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/macintosh/via-macii.c b/drivers/macintosh/via-macii.c index 8d5ef77b4a435..e143ddb81de34 100644 --- a/drivers/macintosh/via-macii.c +++ b/drivers/macintosh/via-macii.c @@ -116,7 +116,7 @@ static struct adb_request *current_req; /* first request struct in the queue */ static struct adb_request *last_req; /* last request struct in the queue */ static unsigned char reply_buf[16]; /* storage for autopolled replies */ static unsigned char *reply_ptr; /* next byte in reply_buf or req->reply */ -static int reading_reply; /* store reply in reply_buf else req->reply */ +static bool reading_reply; /* store reply in reply_buf else req->reply */ static int data_index; /* index of the next byte to send from req->data */ static int reply_len; /* number of bytes received in reply_buf or req->reply */ static int status; /* VIA's ADB status bits captured upon interrupt */ @@ -394,7 +394,7 @@ static irqreturn_t macii_interrupt(int irq, void *arg) WARN_ON((status & ST_MASK) != ST_IDLE); reply_ptr = reply_buf; - reading_reply = 0; + reading_reply = false; bus_timeout = false; srq_asserted = false; @@ -442,7 +442,7 @@ static irqreturn_t macii_interrupt(int irq, void *arg) */ macii_state = reading; - reading_reply = 0; + reading_reply = false; reply_ptr = reply_buf; *reply_ptr = last_talk_cmd; reply_len = 1; @@ -456,7 +456,7 @@ static irqreturn_t macii_interrupt(int irq, void *arg) if (req->reply_expected) { macii_state = reading; - reading_reply = 1; + reading_reply = true; reply_ptr = req->reply; *reply_ptr = req->data[1]; reply_len = 1; @@ -466,7 +466,7 @@ static irqreturn_t macii_interrupt(int irq, void *arg) } else if ((req->data[1] & OP_MASK) == TALK) { macii_state = reading; - reading_reply = 0; + reading_reply = false; reply_ptr = reply_buf; *reply_ptr = req->data[1]; reply_len = 1; -- 2.26.2