Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp881697pxb; Wed, 27 Oct 2021 14:23:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbP2c+YhPUbbSABQ1AJQ59hqOIyw72eyxG6fP/tdc8YQOKeW4198xoNesBALPFdgFYfUNQ X-Received: by 2002:aa7:d9d3:: with SMTP id v19mr476709eds.278.1635369812144; Wed, 27 Oct 2021 14:23:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635369812; cv=none; d=google.com; s=arc-20160816; b=vrQBQ/ELkISIGBkIfPV/dvNXHJB56U8lrIQtECjFP4bA8O75/e65CS2srI5B+hl74l +N6Dl5kljFlj+ESbtngHOm2WqtYGPHxdpqxEZIEIEgI0e9kTyK4LStsJ5x9lhsvX4tmg XBeOHqy0J0ugNPVQUsKYi5yB5PR5UMRWqOMbEetHLaOXikepQWc4QemYFcmtdXk6M4dk /Ooors++ARfvLGE+qQ5B2WVuJvW5X44YT+tkWhK210B9dQTuZ7PaCFXHA1bCZVKaVD7N So16pZaYW3/UtwkitdEcs/K9q6f8FHhOCvi2SI66OKcyFIwswNv19sj9ZgfrteCaGPCx AEAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=1K2iBgl7E87Yru657QDRIhwUVx5Oijp8g7OvGWFWc9k=; b=c823ZHhtibr/5y9vc4RN7TkiO18vQDXDWBJnAuzEHJizloLqIjzwEYGtXZY5jFP+HY CvQY9S0ssUG4+T3o5UrvwpUmQD+qeOYLYPGajPKEAEzZhihpkL4LGF+6pOT14OTitQYs rIXscSxN+9h9lo7mUDKOnGNtiSKbNOE5p5u8kvZzLcFF/rGKbn77+N+Z4BRULpGGYa42 K6L2DYN8hr6mxistOSjrGlIMx7g9YwpgUFo2wb5Zh/C9VKSbKX6V1GxHZJJP7JwYt8C6 O46JZEu7WW0fHVGKBsSSPbNoXber+s6QvGEcQ77wm1LM8fWIvRHRdVGaNYJdJevpVH8l g80w== 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bitwise.fi Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a20si505740ejg.702.2021.10.27.14.22.56; Wed, 27 Oct 2021 14:23:32 -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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bitwise.fi Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241402AbhJ0KYY (ORCPT + 97 others); Wed, 27 Oct 2021 06:24:24 -0400 Received: from mail.bitwise.fi ([109.204.228.163]:42724 "EHLO mail.bitwise.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241366AbhJ0KYY (ORCPT ); Wed, 27 Oct 2021 06:24:24 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.bitwise.fi (Postfix) with ESMTP id 75C02460029; Wed, 27 Oct 2021 13:21:57 +0300 (EEST) X-Virus-Scanned: Debian amavisd-new at Received: from mail.bitwise.fi ([127.0.0.1]) by localhost (mustetatti.dmz.bitwise.fi [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Zhm03kzXQedL; Wed, 27 Oct 2021 13:21:54 +0300 (EEST) Received: from localhost.net (fw1.dmz.bitwise.fi [192.168.69.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: anssiha) by mail.bitwise.fi (Postfix) with ESMTPSA id 91093460026; Wed, 27 Oct 2021 13:21:54 +0300 (EEST) From: Anssi Hannula To: Greg Kroah-Hartman , Jiri Slaby Cc: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Subject: [PATCH] tty: Fix extra "not" in TTY_DRIVER_REAL_RAW description Date: Wed, 27 Oct 2021 13:21:24 +0300 Message-Id: <20211027102124.3049414-1-anssi.hannula@bitwise.fi> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org TTY_DRIVER_REAL_RAW flag (which is always set for e.g. serial ports) documentation says that driver must always set special character handling flags in certain conditions. However, as the following sentence makes clear, what is actually intended is the opposite. Fix that by removing the unintended double negation. Signed-off-by: Anssi Hannula --- This one seems to have been there since 1994. include/linux/tty_driver.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/tty_driver.h b/include/linux/tty_driver.h index c20431d8def8..5bec04481c60 100644 --- a/include/linux/tty_driver.h +++ b/include/linux/tty_driver.h @@ -360,7 +360,7 @@ static inline void tty_set_operations(struct tty_driver *driver, * Used for PTY's, in particular. * * TTY_DRIVER_REAL_RAW --- if set, indicates that the driver will - * guarantee never not to set any special character handling + * guarantee never to set any special character handling * flags if ((IGNBRK || (!BRKINT && !PARMRK)) && (IGNPAR || * !INPCK)). That is, if there is no reason for the driver to * send notifications of parity and break characters up to the -- 2.31.1