]> asedeno.scripts.mit.edu Git - linux.git/commit
wan/fsl_ucc_hdlc: use IS_ERR_VALUE() to check return value of qe_muram_alloc
authorYueHaibing <yuehaibing@huawei.com>
Mon, 23 Jul 2018 14:12:33 +0000 (22:12 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Jul 2018 18:07:10 +0000 (11:07 -0700)
commitfd800f646402c0f85547166b59ca065175928b7b
tree7741e9fec3b190b5c5db6622988fd4169856dbe2
parent6a525818b135d72f3706b5114174e5215c217054
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: c19b6d246a35 ("drivers/net: support hdlc function for QE-UCC")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wan/fsl_ucc_hdlc.c