net: atlantic: convert comma to semicolon
authorChen Ni <nichen@iscas.ac.cn>
Wed, 4 Sep 2024 08:08:45 +0000 (16:08 +0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 7 Sep 2024 01:05:53 +0000 (18:05 -0700)
Replace comma between expressions with semicolons.

Using a ',' in place of a ';' can have unintended side effects.
Although that is not the case here, it is seems best to use ';'
unless ',' is intended.

Found by inspection.
No functional change intended.
Compile tested only.

Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20240904080845.1353144-1-nichen@iscas.ac.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/aquantia/atlantic/aq_ring.c

index f7433abd659159203f99fbb6cc9ed394bdedacfc..f21de0c21e5244dc6204fd9a3a795f7cd5ae9f37 100644 (file)
@@ -557,7 +557,7 @@ static int __aq_ring_rx_clean(struct aq_ring_s *self, struct napi_struct *napi,
                                }
 
                                frag_cnt++;
-                               next_ = buff_->next,
+                               next_ = buff_->next;
                                buff_ = &self->buff_ring[next_];
                                is_rsc_completed =
                                        aq_ring_dx_in_range(self->sw_head,
@@ -583,7 +583,7 @@ static int __aq_ring_rx_clean(struct aq_ring_s *self, struct napi_struct *napi,
                                                err = -EIO;
                                                goto err_exit;
                                        }
-                                       next_ = buff_->next,
+                                       next_ = buff_->next;
                                        buff_ = &self->buff_ring[next_];
 
                                        buff_->is_cleaned = true;