Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp149789ybl; Tue, 20 Aug 2019 17:20:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqzP1KBT3/fY+vzblRvmNiCs6CBRHYP+HS/RTUFUXSJWU8cntPjArjQGil88/9cR2qeTT2ML X-Received: by 2002:a17:90a:8a11:: with SMTP id w17mr2531516pjn.139.1566346845581; Tue, 20 Aug 2019 17:20:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566346845; cv=none; d=google.com; s=arc-20160816; b=SOmAW70l5cmOPUwpFst/MPj39zKIAoxf3gFzLF6Wu0JFQgggRr1mgGvW1s23usQYj2 sh4FPOm0M5TsIet6Ntx1I6nl1bWeIQX/tWRoqKAWnGU/pUCgDvbzbgl8lffPcG2IRh8p UqZAobyCiM7cgTt6VUKCiLuUrboUyvQmf2rRzzzIWJkkJRaseDF4QZ93u14h5rtcL+JT +K3lxdXG1gQ+w0gUadVR/VrYb2eDT3MkPFLy0oLIn7ayodIsVTBEwL6e5o3g8HUxBPMJ NRBqueTLak+Qd/oSVfJylWDz/Q7MydgDsRXbM7xmxCgB2W0xdAMqzbLKY77OVtjNh49L O+3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=wYmP7l7xYXEkpyG7dJwFSke/FRHdQ6zd7wLrtCe0Nro=; b=CjMEM9q6YsNHoGZFCCdCwZ+RlGP35F4ZA2+UxZfnq8esbfzSFDuHlNyoSQsM6GgWMK e3kG1mrlbmHEuBzRhQaeMbMCMR96sCCFn/Rgo7ALkh/USWG+OoNz3K9uVxg+lMg54D3j KScdjHI6+ESBeYG0H/jQ0hjSeDVdIYJDMsat/V2xcSHk1/CZEBq0aakyFzOw3Idobpg9 NjtzAc3P/YwHHfE4nIeLSrwBJbyLzFKz5Q+0ZF4fReT4n5XlqrhImIQXyHHfNB93uRqA iwrBZ27jL4/aXtZ9c0wDZE9xDHStJRSg9jQl4abASxslEBSE6YD/+ybNOakgXLgUsGLk U7LA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=k4427tlh; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h4si14242856pfo.131.2019.08.20.17.20.30; Tue, 20 Aug 2019 17:20:45 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=k4427tlh; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726637AbfHUASx (ORCPT + 99 others); Tue, 20 Aug 2019 20:18:53 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:46239 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726560AbfHUASw (ORCPT ); Tue, 20 Aug 2019 20:18:52 -0400 Received: by mail-pl1-f194.google.com with SMTP id c2so287784plz.13 for ; Tue, 20 Aug 2019 17:18:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=wYmP7l7xYXEkpyG7dJwFSke/FRHdQ6zd7wLrtCe0Nro=; b=k4427tlhkbAql47p/Igzqz9qG7iGY4VAjnTQCSvYQF2yNIuU9dyzJC4kHtm0M4r5eR sqY80jG2mnHwORi1nDP7JqJPuHA2FqonA4I3Rp8wmASaosWeQg4MUwiQfW+HIqn2T8Nh xORTETo+y/tIN3brE8Y+v2OMPBAiaQaX1f3NP23rJCEZRPPOvnvwCfuJnK57bBcfwqV/ 7ixqGAQnp8uQnxqAZ9d2Fawi6vDDSM45A2MJPObeCosJZLGdPRdq3pING/UyJWnltOHt PnAUEVlSqR4ZDKjlLk5bYhYAZ0+EUbNrV2O0aVunvGz3l6+AhIFtwuRVz0siuG1io3cP Gx1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=wYmP7l7xYXEkpyG7dJwFSke/FRHdQ6zd7wLrtCe0Nro=; b=hRce1P2fzEZ+AnrL98gcabGBM0CQdcGCcGiuXMm1jfuK+KEpiDDes+oVVhbq26TaWa vd2E25NMZWyXEUOAprvrUXO625NO7f5ekChCQVcRPs94wBX3p0NtcpD0b2r0mJBU6tvK xssPxsJkS4hs7OdAif2IvuhIVL05LBuy1vbSALOsEXWv9zKbf7zgAtE9WnBHimrr1K2U +ZdjebrsZW8PTIRtQyjA/YgxGwcq1xE4UNseyBbdc5vB9ZKM15pVkxNexBqn/YQMIBD3 aqeRLs46Nl5UHL9EaGbFTKaxJlP3AFA9Uo+o/ol9JBCTcp6f0+Zt34O1uW6oNswDw36B GniQ== X-Gm-Message-State: APjAAAXlYd1vUoY2m4Z7IGUsNuoys6iYFoaFbckYb/QoBvKhhEzPp+uZ AOydyiDrtooIbPZV8uAeuqA= X-Received: by 2002:a17:902:6b07:: with SMTP id o7mr30180035plk.180.1566346731539; Tue, 20 Aug 2019 17:18:51 -0700 (PDT) Received: from localhost.localdomain (wsip-184-188-36-2.sd.sd.cox.net. [184.188.36.2]) by smtp.googlemail.com with ESMTPSA id g2sm18806323pfm.32.2019.08.20.17.18.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 20 Aug 2019 17:18:51 -0700 (PDT) From: Caitlyn To: Gao Xiang , Chao Yu , Greg Kroah-Hartman Cc: Caitlyn , "Tobin C . Harding" , linux-erofs@lists.ozlabs.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] staging/erofs: Balanced braces around a few conditional statements. Date: Tue, 20 Aug 2019 20:18:20 -0400 Message-Id: <1566346700-28536-3-git-send-email-caitlynannefinn@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1566346700-28536-1-git-send-email-caitlynannefinn@gmail.com> References: <1566346700-28536-1-git-send-email-caitlynannefinn@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Balanced braces to fix some checkpath warnings in inode.c and unzip_vle.c Signed-off-by: Caitlyn --- drivers/staging/erofs/inode.c | 4 ++-- drivers/staging/erofs/unzip_vle.c | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/staging/erofs/inode.c b/drivers/staging/erofs/inode.c index 4c3d8bf..8de6fcd 100644 --- a/drivers/staging/erofs/inode.c +++ b/drivers/staging/erofs/inode.c @@ -278,9 +278,9 @@ struct inode *erofs_iget(struct super_block *sb, vi->nid = nid; err = fill_inode(inode, isdir); - if (likely(!err)) + if (likely(!err)) { unlock_new_inode(inode); - else { + } else { iget_failed(inode); inode = ERR_PTR(err); } diff --git a/drivers/staging/erofs/unzip_vle.c b/drivers/staging/erofs/unzip_vle.c index f0dab81..f431614 100644 --- a/drivers/staging/erofs/unzip_vle.c +++ b/drivers/staging/erofs/unzip_vle.c @@ -915,21 +915,21 @@ static int z_erofs_vle_unzip(struct super_block *sb, mutex_lock(&work->lock); nr_pages = work->nr_pages; - if (likely(nr_pages <= Z_EROFS_VLE_VMAP_ONSTACK_PAGES)) + if (likely(nr_pages <= Z_EROFS_VLE_VMAP_ONSTACK_PAGES)) { pages = pages_onstack; - else if (nr_pages <= Z_EROFS_VLE_VMAP_GLOBAL_PAGES && - mutex_trylock(&z_pagemap_global_lock)) + } else if (nr_pages <= Z_EROFS_VLE_VMAP_GLOBAL_PAGES && + mutex_trylock(&z_pagemap_global_lock)) { pages = z_pagemap_global; - else { + } else { repeat: pages = kvmalloc_array(nr_pages, sizeof(struct page *), GFP_KERNEL); /* fallback to global pagemap for the lowmem scenario */ if (unlikely(!pages)) { - if (nr_pages > Z_EROFS_VLE_VMAP_GLOBAL_PAGES) + if (nr_pages > Z_EROFS_VLE_VMAP_GLOBAL_PAGES) { goto repeat; - else { + } else { mutex_lock(&z_pagemap_global_lock); pages = z_pagemap_global; } -- 2.7.4