Commit 042334a8 authored by wuych's avatar wuych Committed by David S. Miller

atlantic:hw_atl2:hw_atl2_utils_fw: Remove unnecessary (void*) conversions

Pointer variables of void * type do not require type cast.
Signed-off-by: default avatarwuych <yunchuan@nfschina.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e0807c43
...@@ -336,7 +336,7 @@ static int aq_a2_fw_get_mac_permanent(struct aq_hw_s *self, u8 *mac) ...@@ -336,7 +336,7 @@ static int aq_a2_fw_get_mac_permanent(struct aq_hw_s *self, u8 *mac)
static void aq_a2_fill_a0_stats(struct aq_hw_s *self, static void aq_a2_fill_a0_stats(struct aq_hw_s *self,
struct statistics_s *stats) struct statistics_s *stats)
{ {
struct hw_atl2_priv *priv = (struct hw_atl2_priv *)self->priv; struct hw_atl2_priv *priv = self->priv;
struct aq_stats_s *cs = &self->curr_stats; struct aq_stats_s *cs = &self->curr_stats;
struct aq_stats_s curr_stats = *cs; struct aq_stats_s curr_stats = *cs;
bool corrupted_stats = false; bool corrupted_stats = false;
...@@ -378,7 +378,7 @@ do { \ ...@@ -378,7 +378,7 @@ do { \
static void aq_a2_fill_b0_stats(struct aq_hw_s *self, static void aq_a2_fill_b0_stats(struct aq_hw_s *self,
struct statistics_s *stats) struct statistics_s *stats)
{ {
struct hw_atl2_priv *priv = (struct hw_atl2_priv *)self->priv; struct hw_atl2_priv *priv = self->priv;
struct aq_stats_s *cs = &self->curr_stats; struct aq_stats_s *cs = &self->curr_stats;
struct aq_stats_s curr_stats = *cs; struct aq_stats_s curr_stats = *cs;
bool corrupted_stats = false; bool corrupted_stats = false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment