Use PTR_ERR_OR_ZERO instead of PTR_ERR in cases where
zero is a valid input. Reported by smatch.
Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
 
        channel->dpcon = setup_dpcon(priv);
        if (IS_ERR_OR_NULL(channel->dpcon)) {
-               err = PTR_ERR(channel->dpcon);
+               err = PTR_ERR_OR_ZERO(channel->dpcon);
                goto err_setup;
        }
 
                /* Try to allocate a channel */
                channel = alloc_channel(priv);
                if (IS_ERR_OR_NULL(channel)) {
-                       err = PTR_ERR(channel);
+                       err = PTR_ERR_OR_ZERO(channel);
                        if (err != -EPROBE_DEFER)
                                dev_info(dev,
                                         "No affine channel for cpu %d and above\n", i);