ldmvsw: Remove redundant unlikely()
authorTobias Klauser <tklauser@distanz.ch>
Tue, 26 Sep 2017 13:14:15 +0000 (15:14 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Sep 2017 17:15:44 +0000 (10:15 -0700)
IS_ERR() already implies unlikely(), so it can be omitted.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sun/ldmvsw.c

index 5b56c24..5feeaa9 100644 (file)
@@ -307,7 +307,7 @@ static int vsw_port_probe(struct vio_dev *vdev, const struct vio_device_id *id)
 
        /* Get (or create) the vnet associated with this port */
        vp = vsw_get_vnet(hp, vdev->mp, &handle);
-       if (unlikely(IS_ERR(vp))) {
+       if (IS_ERR(vp)) {
                err = PTR_ERR(vp);
                pr_err("Failed to get vnet for vsw-port\n");
                mdesc_release(hp);