beceem: off by one on queue index
authorStephen Hemminger <stephen.hemminger@vyatta.com>
Mon, 1 Nov 2010 16:27:20 +0000 (12:27 -0400)
committerStephen Hemminger <stephen.hemminger@vyatta.com>
Mon, 1 Nov 2010 16:37:48 +0000 (12:37 -0400)
The driver allocates 18 queues (0..16) are for traffic, and 17
is a bit bucket.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
drivers/staging/bcm/Macros.h

index f2fd60286a4cc93417c4940cee83fde0137845db..feb351578c8bd147c13e04bb06263426c9590ca4 100644 (file)
@@ -261,7 +261,7 @@ typedef enum _E_PHS_DSC_ACTION
 
 #define FIRMWARE_BEGIN_ADDR 0xBFC00000
 
-#define INVALID_QUEUE_INDEX (NO_OF_QUEUES+1)
+#define INVALID_QUEUE_INDEX NO_OF_QUEUES
 
 #define INVALID_PID (pid_t)-1
 #define DDR_80_MHZ     0