2008-11-28 19:43:45

by Hannes Eder

[permalink] [raw]
Subject: [PATCH] alim15x3: fix sparse warning

Fix this sparse warning:

drivers/ide/alim15x3.c:594:2: warning: returning void-valued expression

Signed-off-by: Hannes Eder <[email protected]>
---
drivers/ide/alim15x3.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/ide/alim15x3.c b/drivers/ide/alim15x3.c
index e56c7b7..45d2356 100644
--- a/drivers/ide/alim15x3.c
+++ b/drivers/ide/alim15x3.c
@@ -591,7 +591,7 @@ static int __init ali15x3_ide_init(void)

static void __exit ali15x3_ide_exit(void)
{
- return pci_unregister_driver(&alim15x3_pci_driver);
+ pci_unregister_driver(&alim15x3_pci_driver);
}

module_init(ali15x3_ide_init);
--
1.5.6.3


Subject: Re: [PATCH] alim15x3: fix sparse warning

On Thursday 27 November 2008, Hannes Eder wrote:
> Fix this sparse warning:
>
> drivers/ide/alim15x3.c:594:2: warning: returning void-valued expression
>
> Signed-off-by: Hannes Eder <[email protected]>

applied