]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] OProfile update
authorJohn Levon <levon@movementarian.org>
Sat, 3 May 2003 11:41:31 +0000 (04:41 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Sat, 3 May 2003 11:41:31 +0000 (04:41 -0700)
Convention is that error returns are negative.

arch/alpha/oprofile/common.c

index 4f40b8292e9978cafbcee72857281c0d75d984cf..0976ff84e33c3b8d4726724634a4d3a51bfd7bb8 100644 (file)
@@ -175,7 +175,7 @@ oprofile_arch_init(struct oprofile_operations **ops)
        }
 
        if (!lmodel)
-               return ENODEV;
+               return -ENODEV;
        model = lmodel;
 
        oprof_axp_ops.cpu_type = lmodel->cpu_type;