Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5941884ybi; Wed, 12 Jun 2019 11:05:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqwkX2+DXsW4KTUQJ1nlbOAcYg8ri/YkTioHuiQrFi+/axoGS60pkpuNTvP30x12F3YhOIJl X-Received: by 2002:a17:902:7043:: with SMTP id h3mr22589878plt.10.1560362759595; Wed, 12 Jun 2019 11:05:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560362759; cv=none; d=google.com; s=arc-20160816; b=TmUoUqNY9f3a4wf+X+UUYiGUfdGMPDr1URa+QSWoQbK6oSNqoOA9UPHkpvmrNKhJvH GWMLT7Xdu3oRQ2N5p04WxubBm8ojsagErHwBhCvIHRk0adbciaoDXuAp2S+oSBesH8zC DsmdXzrJIzlLrlpDOdX6G2Cmw6kP/LesEXG1abUTAQLe49TEMUhR4hQ+YsMywNcf1tCT J5WcUcc3KCxgX9joGre46uZWH96fXmrSgIE9HptS3SP0IueGT6JYHR2TVZLt4TaC4Qnr cFkXAtvxVF6Y6GO1V9+9igwopWZYyPi6hKls9ypIfvQ2kD3egv8etmcK+SIEy4y0ky6y qp/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:references:cc:to:subject:from :dkim-signature; bh=x/y4rh2GpXVp2fvK0BIj6HcH04gYu7ik1dJuJV7JqSE=; b=eEGCllhQB4ODAfjgcJKbk33RlykVl4a2mlGy9X4QgP38PPqdHgfXOTcdFrZ3PJEqMj v6IlknpLyqCtU6OwhgRlI52rXPrO9A3X+X7Qc+wwjGlCtXMT3Hk/C+LJ9dVJ4ONa/+RD VfsoaLRN9Yan0xNeHnTfE6noSw3hwNNUCPsDC1heNkiFBpiCu085RPLbrv48mEDi2rwu yT8cmE7PU67uAfJe4FGxVZqSyIb/JhKEf4glevZd5uPW1JqAowxUwBpfPEdsjlB8P4Wg IqyOGwC2cbuVS1B7uvCeQ1TdCQ+rMUdtu0XQlmL+cAbSRr+sjXcLoxighdIq4WWQTECC 7iFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=gfaonzah; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t6si309765plr.245.2019.06.12.11.05.44; Wed, 12 Jun 2019 11:05:59 -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=fail header.i=@gmail.com header.s=20161025 header.b=gfaonzah; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732098AbfFLPYy (ORCPT + 99 others); Wed, 12 Jun 2019 11:24:54 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:40240 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727419AbfFLPYx (ORCPT ); Wed, 12 Jun 2019 11:24:53 -0400 Received: by mail-qt1-f196.google.com with SMTP id a15so18930384qtn.7; Wed, 12 Jun 2019 08:24:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:subject:to:cc:references:openpgp:autocrypt:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=x/y4rh2GpXVp2fvK0BIj6HcH04gYu7ik1dJuJV7JqSE=; b=gfaonzahNiQIay2TIzNRmKH4jfqBoa1rd4ukaLTrYRQkLOdLp/2X+zYhdgIRZjuL+K M5BnzEoMLwGRU0ca+2ghr+czB10fUMRNz15o2Yl3sItCK7ORKZWLOyRO33YxZe1+I7wX oJGEAHeAnxuxq5DIDNxwaL7LPR5SDkxCWlll7J91Z5/xkxwLaFSEJ3eKqELLHIiHj7w5 oNfQx6zhhGF4PpAwBVYbvHURhwNORv0bMni9nOD2yvW8cJXLgd2yEWP41spERrfDl4IT F0SkvhzRsgjZItQJA33SFy2QIs0g6znV28uE5Lj+g4bDj8uGi2bF0+yszeI5v43VD5OT 0h3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:subject:to:cc:references:openpgp :autocrypt:message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=x/y4rh2GpXVp2fvK0BIj6HcH04gYu7ik1dJuJV7JqSE=; b=PwAISTp3+cUaxE13yYSyQJ/xeOSBWk818c/4KAaOlB8bsXAI7GpMOUG2mjWK9vVNi0 gKSWyA9V3bp1fIxCbQbkQD8BFpnJiPczLxksSYFqdWuOSRtgjJDDsJhOjOYoFQRHWpHy MhPLjA/4lXz1tgduyHZNScYBycaWjm4ly5y1qmNZ5+tSBLPzAHMkq0T4GGZjdyH03rWo lotGuG/WbL88dtGzAq6ZzCMh71m3xkbpJKPw2xHBIlt9ewp3kSV/X7Kblhe3cudHNnQy 9XjS/ZKh0y+u9n4xSum4Qf9vcDYRs4J01wwbpxHVYkKGx5xAA7u8/me3fGH8XOtcmb+o GhXg== X-Gm-Message-State: APjAAAWjQz8hGYVkZrBmyseLTf71HJGiZfPJjmZFS9YL3YEbwFAAjo/L 4MC5y25mEpzI4zTZ5SKCAqZh6AFm X-Received: by 2002:aed:3ed5:: with SMTP id o21mr69291746qtf.369.1560353092224; Wed, 12 Jun 2019 08:24:52 -0700 (PDT) Received: from [10.84.150.66] ([167.220.148.66]) by smtp.gmail.com with ESMTPSA id i17sm8068790qkl.71.2019.06.12.08.24.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Jun 2019 08:24:51 -0700 (PDT) From: Sinan Kaya X-Google-Original-From: Sinan Kaya Subject: Re: [PATCH 6/6] dma: qcom: hidma: no need to check return value of debugfs_create functions To: Greg Kroah-Hartman , dan.j.williams@intel.com, vkoul@kernel.org Cc: Andy Gross , David Brown , linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org References: <20190612122557.24158-1-gregkh@linuxfoundation.org> <20190612122557.24158-6-gregkh@linuxfoundation.org> Openpgp: preference=signencrypt Autocrypt: addr=okaya@kernel.org; keydata= mQENBFrnOrUBCADGOL0kF21B6ogpOkuYvz6bUjO7NU99PKhXx1MfK/AzK+SFgxJF7dMluoF6 uT47bU7zb7HqACH6itTgSSiJeSoq86jYoq5s4JOyaj0/18Hf3/YBah7AOuwk6LtV3EftQIhw 9vXqCnBwP/nID6PQ685zl3vH68yzF6FVNwbDagxUz/gMiQh7scHvVCjiqkJ+qu/36JgtTYYw 8lGWRcto6gr0eTF8Wd8f81wspmUHGsFdN/xPsZPKMw6/on9oOj3AidcR3P9EdLY4qQyjvcNC V9cL9b5I/Ud9ghPwW4QkM7uhYqQDyh3SwgEFudc+/RsDuxjVlg9CFnGhS0nPXR89SaQZABEB AAG0HVNpbmFuIEtheWEgPG9rYXlhQGtlcm5lbC5vcmc+iQFOBBMBCAA4FiEEYdOlMSE+a7/c ckrQvGF4I+4LAFcFAlztcAoCGwMFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQvGF4I+4L AFfidAf/VKHInxep0Z96iYkIq42432HTZUrxNzG9IWk4HN7c3vTJKv2W+b9pgvBF1SmkyQSy 8SJ3Zd98CO6FOHA1FigFyZahVsme+T0GsS3/OF1kjrtM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windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20190612122557.24158-6-gregkh@linuxfoundation.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/12/2019 8:25 AM, Greg Kroah-Hartman wrote: > When calling debugfs functions, there is no need to ever check the > return value. The function can work or not, but the code logic should > never do something different based on this. > > Also, because there is no need to save the file dentry, remove the > variables that were saving them as they were never even being used once > set. > > Cc: Sinan Kaya > Cc: Andy Gross > Cc: David Brown > Cc: Dan Williams > Cc: Vinod Koul > Cc: linux-arm-kernel@lists.infradead.org > Cc: linux-arm-msm@vger.kernel.org > Cc: dmaengine@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > Signed-off-by: Greg Kroah-Hartman Interesting. Wouldn't debugfs_create_file() blow up if dir is NULL for some reason? + debugfs_create_file("stats", S_IRUGO, dir, chan, + &hidma_chan_fops); Note that code ignores the return value of hidma_debug_init(); It was just trying to do clean up on debugfs failure by calling debugfs_remove_recursive(dmadev->debugfs);