On Fri, Jul 14, 2023 at 03:21:47AM +0000, 杜敏杰 wrote: > Hi Baolu! > > It seems that 'smmu->debugfs' check is still needed. > Then I will modify the patch. > Thanks! > > regards, > Minjie Don't top-post, please. See Documentation/process/2.Process.rst and Documentation/process/submitting-patches.rst. Also, how did you come to the above conclusion? Baolu said that Greg keeps reminding people that we shouldn't do error handling for debugfs and gave a Reviewed-by:, so why the 180? Thierry > -----邮件原件----- > 发件人: Baolu Lu > 发送时间: 2023年7月14日 10:58 > 收件人: 杜敏杰 ; Thierry Reding ; Krishna Reddy ; Joerg Roedel ; Will Deacon ; Robin Murphy ; Jonathan Hunter ; open list:TEGRA IOMMU DRIVERS ; open list:IOMMU SUBSYSTEM ; open list > 抄送: baolu.lu@linux.intel.com; opensource.kernel ; Thierry Reding > 主题: Re: [PATCH v4] iommu: remove redundant parameter check in tegra_smmu_debugfs_init() > > [Some people who received this message don't often get email from baolu.lu@linux.intel.com. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ] > > On 2023/7/13 15:28, Minjie Du wrote: > > debugfs_create_file() will return early if smmu->debugfs is an error > > pointer, so an extra error check is not needed. > > > > Signed-off-by: Minjie Du > > Acked-by: Thierry Reding > > Greg keeps reminding that no error branch for debugfs, so > > Reviewed-by: Lu Baolu > > Best regards, > baolu