]> git.baikalelectronics.ru Git - kernel.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)
commit9c2f244bb9294f6e6682246018557737d7d18c1f
tree7741e9fec3b190b5c5db6622988fd4169856dbe2
parent63664de2b9d48fac17fe33dbca8dbb5be33121d3
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: f37d5b7baead ("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