lkml.org 
[lkml]   [2022]   [Jul]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v1 1/1] ALSA: isa: Use INVALID_HWIRQ definition
Date
Use specific definition for invalid IRQ. It makes the
code uniform in respect to the constant used for that.
No functional change intended.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
sound/isa/sscape.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sound/isa/sscape.c b/sound/isa/sscape.c
index 0bc0025f7c19..9adaf91045e9 100644
--- a/sound/isa/sscape.c
+++ b/sound/isa/sscape.c
@@ -140,8 +140,7 @@ struct soundscape {
unsigned char midi_vol;
};

-#define INVALID_IRQ ((unsigned)-1)
-
+#define INVALID_IRQ ((unsigned)INVALID_HWIRQ)

static inline struct soundscape *get_card_soundscape(struct snd_card *c)
{
--
2.35.1
\
 
 \ /
  Last update: 2022-07-15 22:58    [W:0.089 / U:0.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site