hw-breakpoints: Simplify error handling in breakpoint creation requests
[pandora-kernel.git] / samples / hw_breakpoint / data_breakpoint.c
index 9506381..ee7f9fb 100644 (file)
@@ -61,9 +61,6 @@ static int __init hw_break_module_init(void)
        if (IS_ERR(sample_hbp)) {
                ret = PTR_ERR(sample_hbp);
                goto fail;
-       } else if (!sample_hbp) {
-               ret = -EINVAL;
-               goto fail;
        }
 
        printk(KERN_INFO "HW Breakpoint for %s write installed\n", ksym_name);