]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: Unify the type convert for desc.data
authorJian Shen <shenjian15@huawei.com>
Fri, 21 Sep 2018 15:41:38 +0000 (16:41 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 22 Sep 2018 02:29:32 +0000 (19:29 -0700)
commita95f3bd1cb7f3124ddd17cdf0b819af6a191fea0
tree7cdb928dd8ac775197bd3f19fad0202fa71a2251
parent8c981097bc97f76a3fbae98b947ae7c92fd664a9
net: hns3: Unify the type convert for desc.data

For desc.data is already point to the address of struct member "data[6]",
it's unnecessary to use '&' to get its address. This patch unifies all
the type convert for dest.data, using "req = (struct name *)dest.data".

Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c