]> git.baikalelectronics.ru Git - kernel.git/commit
ptp: ocp: Fix a couple NULL vs IS_ERR() checks
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 18 Nov 2021 11:22:11 +0000 (14:22 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Nov 2021 12:12:55 +0000 (12:12 +0000)
commit1270dccfe5c2e6705e88880fe25cd225c87c558b
tree1d33dbbd0a624680045771f2186ea6fa66fd642f
parent3f590d145a1e5f7c0662744e42d9b55fea5f3252
ptp: ocp: Fix a couple NULL vs IS_ERR() checks

The ptp_ocp_get_mem() function does not return NULL, it returns error
pointers.

Fixes: 9d32ad1a1096 ("ptp: ocp: Expose various resources on the timecard.")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ptp/ptp_ocp.c