[SPARC64]: Fix typo in sun4v_hvapi_register error handling.
authorDavid S. Miller <davem@sunset.davemloft.net>
Fri, 25 May 2007 07:33:49 +0000 (00:33 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Tue, 29 May 2007 09:49:21 +0000 (02:49 -0700)
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/hvapi.c

index f03ffc829c7a96fe52927b30c541a71dfff360d0..f54b3ed3b09e4a6da657eabcdbbceab87c2a72b8 100644 (file)
@@ -107,7 +107,7 @@ int sun4v_hvapi_register(unsigned long group, unsigned long major,
                                p->minor = actual_minor;
                                ret = 0;
                        } else if (hv_ret == HV_EBADTRAP ||
-                                  HV_ENOTSUPPORTED) {
+                                  hv_ret == HV_ENOTSUPPORTED) {
                                if (p->flags & FLAG_PRE_API) {
                                        if (major == 1) {
                                                p->major = 1;