From: joel@joelfernandes.org (Joel Fernandes) Date: Thu, 31 May 2018 00:14:42 -0700 Subject: [PATCH] kselftests: fix ptr_ret.cocci warnings In-Reply-To: <20180531064535.GA53792@lkp-ib04> References: <20180530000500.257225-9-joel@joelfernandes.org> <20180531064535.GA53792@lkp-ib04> Message-ID: <20180531071442.GA214576@joelaf.mtv.corp.google.com> Content-Type: text/plain; charset="UTF-8" Message-ID: <20180531071442.hVna_DPL1RgGQTwVPpBLydC1zA55i_YaLMtcf0bVV9A@z> On Thu, May 31, 2018@02:45:35PM +0800, kbuild test robot wrote: > From: kbuild test robot > > lib/test_atomic_sections.c:66:1-3: WARNING: PTR_ERR_OR_ZERO can be used > > > Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR > > Generated by: scripts/coccinelle/api/ptr_ret.cocci > > Fixes: 3b0e47f0ade1 ("kselftests: Add tests for the preemptoff and irqsoff tracers") Seems a simple cosmetic/style fix. I can fold it into this patch. thanks, - Joel -- To unsubscribe from this list: send the line "unsubscribe linux-kselftest" in the body of a message to majordomo at vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html