Re: [PATCH] net: sctp: drop unneeded likely() call around IS_ERR()

From: Enrico Weigelt, metux IT consult
Date: Wed Jun 05 2019 - 18:58:26 EST


On 05.06.19 21:50, Marcelo Ricardo Leitner wrote:
On Wed, Jun 05, 2019 at 11:03:27PM +0200, Enrico Weigelt, metux IT consult wrote:
From: Enrico Weigelt <info@xxxxxxxxx>

IS_ERR() already calls unlikely(), so this extra unlikely() call
around IS_ERR() is not needed.

Signed-off-by: Enrico Weigelt <info@xxxxxxxxx>

Hi,

This patch overlaps with
Jun 05 Kefeng Wang (4.4K) [PATCH net-next] net: Drop unlikely before IS_ERR(_OR_NULL)

I've missed Kefeng's patch ... feel free to ignore mine.


--mtx


--
Enrico Weigelt, metux IT consult
Free software and Linux embedded engineering
info@xxxxxxxxx -- +49-151-27565287