Re: [PATCH] tracing: Do PTR_ERR() after IS_ERR()

From: Steven Rostedt
Date: Wed Jul 27 2022 - 12:40:06 EST


On Wed, 27 Jul 2022 23:35:19 +0800
Li Qiong <liqiong@xxxxxxxxxxxx> wrote:

> Check IS_ERR() firstly, then do PTR_ERR().

Why?

The code is fine as is.

-- Steve