From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 96E1CC4727C for ; Wed, 30 Sep 2020 20:00:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3F7362072E for ; Wed, 30 Sep 2020 20:00:00 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="I9UU2Dg6" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729813AbgI3UAA (ORCPT ); Wed, 30 Sep 2020 16:00:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725799AbgI3T77 (ORCPT ); Wed, 30 Sep 2020 15:59:59 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87392C061755 for ; Wed, 30 Sep 2020 12:59:59 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id k18so728838wmj.5 for ; Wed, 30 Sep 2020 12:59:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=pE61Sd1vDuqaQbcCILrO6eiawNT9TIKWlsp4yXv/UZ0=; b=I9UU2Dg6ToW37vXCux0J803ya8LMi3UGT/KppGsXAI0a0v8hhJW4poYleYqrNBLrhM 5A0mATkNifbVTkZoE7ey8aJcA/3o5jYWmvVrQ5bIf8RWmxbAqw4y26/SckDWuPsO3NDc 6j/ikKrxYm81mw39tSzKWRZ03miBA1HLbu5JxPSDB0Raz10wOEEorILNqkKlkuHiZ8ns q8KUTI/32kufp/BYZmqHXWM2ttvvPBtz7xhNSoGrhQoeFVJY/qlknj+ExmjOZOPARa93 03E12z404Uq8U2X97xgaJHyDaMOVmynWDx2suEd1+frQAdeC5qv6KTDx6jmd95gxH6lf r0XQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=pE61Sd1vDuqaQbcCILrO6eiawNT9TIKWlsp4yXv/UZ0=; b=jHvqOI3fkyAX9R7xTe9cmFQd2CCzOdUgZ9eetEtrIlUH6Z2+Y1D8UQDd44upYfSJoT bYLyY4b18yhAS3ne3A/2uGaaIglgDEPn5Xs5glM0B/8VyiDXA7m29cSdOLoeuyzDQ42i lSDasYwrCzC6KMBoore27sYhmBwaUFKGj6BKkrW7yzZ34L2DD86nsU84WkIc7f61k9w9 XDdKWmVFdnOCV6+sQTNUNRNfFCwChVjhFBuPkBGsRJf9Ox3sDUsNM5pRZvVeDwJa+LGd /5xqr9GbHr9LW+X8J/4Y83y17EwxANKFCrI7TY7p7uP1O2ze4aOfvHyJOht48ka3Nk0V 4+qg== X-Gm-Message-State: AOAM532SPePn6OTMkQZIyLub3koDTZwZ/7Qf6cFwPxFdB9RLSVhA9m/2 PL0DSynFpO7LsNdj+GNcgOPIu+CmcAw= X-Google-Smtp-Source: ABdhPJwvSk7L0agHdF+JILYEL8PyZ/gd5aBE6vVqj4MRzd4uAXXM6wG7VTU9Dr1f6WRgQoRhJRw7TA== X-Received: by 2002:a1c:a184:: with SMTP id k126mr4729260wme.39.1601495998270; Wed, 30 Sep 2020 12:59:58 -0700 (PDT) Received: from localhost.localdomain (host109-152-100-194.range109-152.btcentralplus.com. [109.152.100.194]) by smtp.gmail.com with ESMTPSA id 63sm5537278wrc.63.2020.09.30.12.59.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Sep 2020 12:59:57 -0700 (PDT) From: Pavel Begunkov To: Jens Axboe , io-uring@vger.kernel.org Subject: [PATCH for-next] io_uring: io_kiocb_ppos() style change Date: Wed, 30 Sep 2020 22:57:15 +0300 Message-Id: X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org Put brackets around bitwise ops in a complex expression Signed-off-by: Pavel Begunkov --- fs/io_uring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/io_uring.c b/fs/io_uring.c index 7ee5e18218c2..631648dd63ac 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -2915,7 +2915,7 @@ static ssize_t io_import_iovec(int rw, struct io_kiocb *req, static inline loff_t *io_kiocb_ppos(struct kiocb *kiocb) { - return kiocb->ki_filp->f_mode & FMODE_STREAM ? NULL : &kiocb->ki_pos; + return (kiocb->ki_filp->f_mode & FMODE_STREAM) ? NULL : &kiocb->ki_pos; } /* -- 2.24.0