Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751335AbdL0FzV (ORCPT ); Wed, 27 Dec 2017 00:55:21 -0500 Received: from mail-pl0-f67.google.com ([209.85.160.67]:45434 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750950AbdL0FzT (ORCPT ); Wed, 27 Dec 2017 00:55:19 -0500 X-Google-Smtp-Source: ACJfBouonLkfpqkgrt7adtoxjLORpf1IpCSgCNyaMmdwfUt5q6f8AAXGrM/GKIxU5nVapVHYh2EZpA== Date: Tue, 26 Dec 2017 21:55:16 -0800 From: JI-HUN KIM To: samuel@sortiz.org Cc: gregkh@linuxfoundation.org, davem@davemloft.net, shreeya.patel23498@gmail.com, netdev@vger.kernel.org, devel@driverdev.osuosl.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] staging: irda: separate multiple assignments Message-ID: <20171227055512.GA32731@MacBook-Air> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 683 Lines: 24 Clean up checkpatch warning: CHECK: multiple assignments should be avoided Signed-off-by: JI-HUN KIM --- drivers/staging/irda/drivers/esi-sir.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/irda/drivers/esi-sir.c b/drivers/staging/irda/drivers/esi-sir.c index 00866a3..01097f1 100644 --- a/drivers/staging/irda/drivers/esi-sir.c +++ b/drivers/staging/irda/drivers/esi-sir.c @@ -104,7 +104,8 @@ static int esi_change_speed(struct sir_dev *dev, unsigned int speed) rts = FALSE; break; case 115200: - dtr = rts = TRUE; + dtr = TRUE; + rts = TRUE; break; default: ret = -EINVAL; -- 2.10.1 (Apple Git-78)