staging: unisys: remove ERRDEV macros
[deliverable/linux.git] / drivers / staging / unisys / visorutil / procobjecttree.c
index 0672e8c9f686ad6a71ab9a2f2b2604b699c5e112..0ba75547b2c5e4df7fd1144cbaccb40bcdbd9841 100644 (file)
@@ -96,8 +96,6 @@ createProcDir(const char *name, struct proc_dir_entry *parent)
 {
        struct proc_dir_entry *p = proc_mkdir_mode(name, S_IFDIR, parent);
 
-       if (p == NULL)
-               ERRDRV("failed to create /proc directory %s", name);
        return p;
 }
 
@@ -107,8 +105,6 @@ createProcFile(const char *name, struct proc_dir_entry *parent,
 {
        struct proc_dir_entry *p = proc_create_data(name, 0, parent,
                                                    fops, data);
-       if (p == NULL)
-               ERRDRV("failed to create /proc file %s", name);
        return p;
 }
 
@@ -137,17 +133,16 @@ MYPROCTYPE *visor_proc_CreateType(struct proc_dir_entry *procDirRoot,
        MYPROCTYPE *rc = NULL, *type = NULL;
        struct proc_dir_entry *parent = NULL;
 
-       if (procDirRoot == NULL) {
-               ERRDRV("procDirRoot cannot be NULL!\n");
+       if (procDirRoot == NULL)
                goto Away;
-       }
-       if (name == NULL || name[0] == NULL) {
-               ERRDRV("name must contain at least 1 node name!\n");
+
+       if (name == NULL || name[0] == NULL)
                goto Away;
-       }
+
        type = kzalloc(sizeof(MYPROCTYPE), GFP_KERNEL | __GFP_NORETRY);
        if (type == NULL)
                goto Away;
+
        type->name = name;
        type->propertyNames = propertyNames;
        type->nProperties = 0;
@@ -222,13 +217,13 @@ MYPROCOBJECT *visor_proc_CreateObject(MYPROCTYPE *type,
        MYPROCOBJECT *obj = NULL, *rc = NULL;
        int i = 0;
 
-       if (type == NULL) {
-               ERRDRV("type cannot be NULL\n");
+       if (type == NULL)
                goto Away;
-       }
+
        obj = kzalloc(sizeof(MYPROCOBJECT), GFP_KERNEL | __GFP_NORETRY);
        if (obj == NULL)
                goto Away;
+
        obj->type = type;
        obj->context = context;
        if (name == NULL) {
@@ -332,10 +327,8 @@ static int seq_show(struct seq_file *seq, void *offset)
 {
        struct proc_dir_entry_context *ctx = seq->private;
 
-       if (ctx == NULL) {
-               ERRDRV("I don't have a freakin' clue...");
+       if (ctx == NULL)
                return 0;
-       }
        (*ctx->show_property)(seq, ctx->procObject->context,
                              ctx->propertyIndex);
        return 0;
This page took 0.033837 seconds and 5 git commands to generate.