can: mcp251x: add error check when wq alloc failed
add error check when workqueue alloc failed, and remove redundant code to make it clear. Fixes: e0000163 ("can: Driver for the Microchip MCP251x SPI CAN controllers") Signed-off-by: NWeitao Hou <houweitaoo@gmail.com> Acked-by: NWillem de Bruijn <willemb@google.com> Tested-by: NSean Nyekjaer <sean@geanix.com> Signed-off-by: NMarc Kleine-Budde <mkl@pengutronix.de>
Showing
想要评论请 注册 或 登录