Re: [trivial PATCH] treewide: Convert switch/case fallthrough; to break;

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 09/09/2020 22:06, Joe Perches wrote:
diff --git a/drivers/net/wireless/mediatek/mt7601u/dma.c b/drivers/net/wireless/mediatek/mt7601u/dma.c
index 09f931d4598c..778be26d329f 100644
--- a/drivers/net/wireless/mediatek/mt7601u/dma.c
+++ b/drivers/net/wireless/mediatek/mt7601u/dma.c
@@ -193,11 +193,11 @@ static void mt7601u_complete_rx(struct urb *urb)
  	case -ESHUTDOWN:
  	case -ENOENT:
  		return;
+	case 0:
+		break;
  	default:
  		dev_err_ratelimited(dev->dev, "rx urb failed: %d\n",
  				    urb->status);
-		fallthrough;
-	case 0:
  		break;
  	}
@@ -238,11 +238,11 @@ static void mt7601u_complete_tx(struct urb *urb)
  	case -ESHUTDOWN:
  	case -ENOENT:
  		return;
+	case 0:
+		break;
  	default:
  		dev_err_ratelimited(dev->dev, "tx urb failed: %d\n",
  				    urb->status);
-		fallthrough;
-	case 0:
  		break;
  	}

Reviewed-by: Matthias Brugger <matthias.bgg@xxxxxxxxx>
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel



[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux