- sound-pci-fm801-use-array_size-macro.patch removed from -mm tree

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

 



The patch titled

     sound/pci/fm801: Use ARRAY_SIZE macro

has been removed from the -mm tree.  Its filename is

     sound-pci-fm801-use-array_size-macro.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
Subject: sound/pci/fm801: Use ARRAY_SIZE macro
From: Tobias Klauser <tklauser@xxxxxxxxxx>

Use ARRAY_SIZE macro instead of sizeof(x)/sizeof(x[0])

Signed-off-by: Tobias Klauser <tklauser@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 sound/pci/fm801.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff -puN sound/pci/fm801.c~sound-pci-fm801-use-array_size-macro sound/pci/fm801.c
--- a/sound/pci/fm801.c~sound-pci-fm801-use-array_size-macro
+++ a/sound/pci/fm801.c
@@ -321,10 +321,8 @@ static unsigned int channels[] = {
   2, 4, 6
 };
 
-#define CHANNELS sizeof(channels) / sizeof(channels[0])
-
 static struct snd_pcm_hw_constraint_list hw_constraints_channels = {
-	.count = CHANNELS,
+	.count = ARRAY_SIZE(channels),
 	.list = channels,
 	.mask = 0,
 };
_

Patches currently in -mm which might be from tklauser@xxxxxxxxxx are

git-alsa.patch
sound-mips-au1x00-use-array_size-macro.patch
sound-sparc-dbri-use-array_size-macro.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux