Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1548795ybl; Thu, 30 Jan 2020 01:43:28 -0800 (PST) X-Google-Smtp-Source: APXvYqyNmw94NPThJ60/5sOy+CRGIHDkn4Vvui+5sw4hg1OxeK+YgNuK9KVyn1fkeg/fsMOO4YGT X-Received: by 2002:a9d:1706:: with SMTP id i6mr3001795ota.151.1580377408737; Thu, 30 Jan 2020 01:43:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580377408; cv=none; d=google.com; s=arc-20160816; b=jy16G40hI5rzCJoh3n9dnQsNHkWIGqx6d2ksV+D7ubGTT87d1qCFnqp9wPwK7lvwnc x0VJtv1qF7d1cDOLHj1llHAngyuoFOlDeQzACo2JnUGvjRRCQt5sslyV/Oy8loubxAqM ckCbIh/Nw6/fei+div99aWAaMHHyTFXNrTkH8h7CeNrrRrQ6pP8XhmvWfGVrJs0+ufxp tEkrSKrRQWhboycnbROEwY2Fp/TMjRimb9yrkHkxjBB5y/Mk6WdIhTbfERf2VijOPgbU rezhJORDvSnh/YxOtyRvQlRUMWh3pHApWq4Qf/VReI9TePl8H2XP3ydsEvku/I8e/QIe PKLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=0og+jrYQCRlDYW/CzD3/8NfXAB9kciV4BQAj0SPLmyE=; b=qpkfpt4k5ph7AvS4nefroy9MLTRqRYvjadZXY8mO/dVM99qfyJhjvAOJ6epYHfy/nx /Xpcw7bttH8TA8b8CZCoNgJ8f9hgufMQRKnHVL7xgPf2g9saNRtM4U/kYfsn+i+NfXkP M1ZuMqAgbUP3Y+6PlO24JsZniTCLFQyygGUBq5Ea/+jjD2iVfW2cEWTh1SMPnkjZfmPV hXhA1fyhGaXHUfHcRAI0KGxJ8F2GZdQnaq56jqEpOp7SyITsz9maqlyb3pIPhqv+atc2 xN0q2RFEf9k7awCF/lZeePb9lhBm/pGJnjJg1XHm5Bv2akTfWMZmR+L+jqwIm1DuahgD bwwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2019-08-05 header.b=fJHuLhhh; 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=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a22si2759919otp.84.2020.01.30.01.43.13; Thu, 30 Jan 2020 01:43:28 -0800 (PST) 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=@oracle.com header.s=corp-2019-08-05 header.b=fJHuLhhh; 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=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727135AbgA3JmG (ORCPT + 99 others); Thu, 30 Jan 2020 04:42:06 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:34032 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726882AbgA3JmF (ORCPT ); Thu, 30 Jan 2020 04:42:05 -0500 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id 00U9cBCP038371; Thu, 30 Jan 2020 09:42:00 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2019-08-05; bh=0og+jrYQCRlDYW/CzD3/8NfXAB9kciV4BQAj0SPLmyE=; b=fJHuLhhhBycwkIdNvXPucQQ+4rV5a6sXyoxMX/WhNDvRFDd037vSWRZz/zVIDQ75WV2O 4dAhNTfVC8BBCKIjcYLgrUj0kL4gKQrXzwylSKLsAmE2E2MygWS3Cf38WkGZuW6IbMag POCzoEzwLtWU02STufIsFJG0lInDDeNtpUD4Bg+DB6tlRJbITjr752kCZNg1f3UCvB+Q 93DMh63MTCrjuWP77LXHJFW/3GJilUiueT+OvZyXddze/dm4Dqj1o8vrWo/Y2QoGMPe1 s1+MciY1sVDIzpj9yhkdyOxlzRYeuQBMFFpqk7+5Aly1oqPUFe6KZCyJ4XAB93WIX5ZE mA== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by userp2120.oracle.com with ESMTP id 2xrearjpn1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 30 Jan 2020 09:42:00 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id 00U9dBqu105945; Thu, 30 Jan 2020 09:42:00 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userp3020.oracle.com with ESMTP id 2xu8e8aec3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 30 Jan 2020 09:41:59 +0000 Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 00U9fqMW014053; Thu, 30 Jan 2020 09:41:52 GMT Received: from kadam (/129.205.23.165) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 30 Jan 2020 01:41:51 -0800 Date: Thu, 30 Jan 2020 12:41:42 +0300 From: Dan Carpenter To: Tetsuhiro Kohada Cc: Valdis Kletnieks , Greg Kroah-Hartman , linux-fsdevel@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Mori.Takahiro@ab.MitsubishiElectric.co.jp, motai.hirotaka@aj.mitsubishielectric.co.jp Subject: Re: [PATCH v2] staging: exfat: remove 'vol_type' variable. Message-ID: <20200130094142.GC1778@kadam> References: <20200130070614.11999-1-Kohada.Tetsuhiro@dc.MitsubishiElectric.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200130070614.11999-1-Kohada.Tetsuhiro@dc.MitsubishiElectric.co.jp> User-Agent: Mutt/1.9.4 (2018-02-28) X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9515 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1911140001 definitions=main-2001300068 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9515 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1911140001 definitions=main-2001300068 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 30, 2020 at 04:06:13PM +0900, Tetsuhiro Kohada wrote: > remove 'vol_type' variable. > > The following issues are described in exfat's TODO. > > clean up the remaining vol_type checks, which are of two types: > > some are ?: operators with magic numbers, and the rest are places > > where we're doing stuff with '.' and '..'. > > The vol_type variable is always set to 'EXFAT'. > The variable checks are unnessesary, so remove unused code. > > Signed-off-by: Tetsuhiro Kohada > Reviewed-by: Mori Takahiro > Suggested-by: Dan Carpenter > --- > Changes in v2: > - Remove wrong check in exfat_readdir(), as suggested by Dan Carpenter. We wouldn't normally give a Suggested-by tag for this, but no one counts Suggested-by tags anyway so it doesn't matter. Looks good. Reviewed-by: Dan Carpenter regards, dan carpenter