Skip to content

Commit 042334a

Browse files
wuychdavem330
authored andcommitted
atlantic:hw_atl2:hw_atl2_utils_fw: Remove unnecessary (void*) conversions
Pointer variables of void * type do not require type cast. Signed-off-by: wuych <yunchuan@nfschina.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent e0807c4 commit 042334a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/net/ethernet/aquantia/atlantic/hw_atl2/hw_atl2_utils_fw.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ static int aq_a2_fw_get_mac_permanent(struct aq_hw_s *self, u8 *mac)
336336
static void aq_a2_fill_a0_stats(struct aq_hw_s *self,
337337
struct statistics_s *stats)
338338
{
339-
struct hw_atl2_priv *priv = (struct hw_atl2_priv *)self->priv;
339+
struct hw_atl2_priv *priv = self->priv;
340340
struct aq_stats_s *cs = &self->curr_stats;
341341
struct aq_stats_s curr_stats = *cs;
342342
bool corrupted_stats = false;
@@ -378,7 +378,7 @@ do { \
378378
static void aq_a2_fill_b0_stats(struct aq_hw_s *self,
379379
struct statistics_s *stats)
380380
{
381-
struct hw_atl2_priv *priv = (struct hw_atl2_priv *)self->priv;
381+
struct hw_atl2_priv *priv = self->priv;
382382
struct aq_stats_s *cs = &self->curr_stats;
383383
struct aq_stats_s curr_stats = *cs;
384384
bool corrupted_stats = false;

0 commit comments

Comments
 (0)