Skip to content

Commit 2091c22

Browse files
tklauserdavem330
authored andcommitted
ldmvsw: Remove redundant unlikely()
IS_ERR() already implies unlikely(), so it can be omitted. Signed-off-by: Tobias Klauser <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 92978ee commit 2091c22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/sun/ldmvsw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ static int vsw_port_probe(struct vio_dev *vdev, const struct vio_device_id *id)
307307

308308
/* Get (or create) the vnet associated with this port */
309309
vp = vsw_get_vnet(hp, vdev->mp, &handle);
310-
if (unlikely(IS_ERR(vp))) {
310+
if (IS_ERR(vp)) {
311311
err = PTR_ERR(vp);
312312
pr_err("Failed to get vnet for vsw-port\n");
313313
mdesc_release(hp);

0 commit comments

Comments
 (0)