Skip to content
Commit fd800f64 authored by YueHaibing's avatar YueHaibing Committed by David S. Miller
Browse files

wan/fsl_ucc_hdlc: use IS_ERR_VALUE() to check return value of qe_muram_alloc



qe_muram_alloc return a unsigned long integer,which should not
compared with zero. check it using IS_ERR_VALUE() to fix this.

Fixes: c19b6d24 ("drivers/net: support hdlc function for QE-UCC")
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6a525818
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment