mlx4_core: Check for DPDP violation only when DPDP is not supported
authorYuval Shaia <yuval.shaia@oracle.com>
Sat, 13 Dec 2014 18:18:40 +0000 (10:18 -0800)
committerRoland Dreier <roland@purestorage.com>
Tue, 16 Dec 2014 02:12:29 +0000 (18:12 -0800)
commit0b9976577c47cea96933c2e0bc6e90976ff225c4
treee175edb51e06cb2643ed2612af6d3c5ae34abe2c
parent9f35e8995b4d6710afeeddd73f501dcd7abf2e89
mlx4_core: Check for DPDP violation only when DPDP is not supported

Move check for DPDP out of the loop to make the code more readable.

Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/net/ethernet/mellanox/mlx4/main.c