net: Mellanox: Delete unnecessary checks before the function call "vunmap"
[firefly-linux-kernel-4.4.55.git] / drivers / net / ethernet / mellanox / mlx4 / alloc.c
index a716c26e0d99cce1d62a6a1e6472bc43bcc6c2ee..0c51c69f802faf63a849300508ad4e809eeb7e3a 100644 (file)
@@ -662,7 +662,7 @@ void mlx4_buf_free(struct mlx4_dev *dev, int size, struct mlx4_buf *buf)
                                  buf->direct.buf,
                                  buf->direct.map);
        else {
-               if (BITS_PER_LONG == 64 && buf->direct.buf)
+               if (BITS_PER_LONG == 64)
                        vunmap(buf->direct.buf);
 
                for (i = 0; i < buf->nbufs; ++i)