}
 
        as102_dev = kzalloc(sizeof(struct as102_dev_t), GFP_KERNEL);
-       if (as102_dev == NULL) {
-               dev_err(&intf->dev, "%s: kzalloc failed\n", __func__);
+       if (as102_dev == NULL)
                return -ENOMEM;
-       }
 
        /* Assign the user-friendly device name */
        for (i = 0; i < ARRAY_SIZE(as102_usb_id_table); i++) {
 
        int size = 0, i, off = 0, chunk;
 
        buf = kzalloc(4096, GFP_KERNEL);
-       if (buf == NULL) {
-               dev_err(go->dev,
-                       "unable to allocate 4096 bytes for firmware construction\n");
+       if (buf == NULL)
                return -1;
-       }
 
        for (i = 1; i < 32; ++i) {
                mjpeg_frame_header(go, buf + size, i);
        int i, off = 0, chunk;
 
        buf = kzalloc(5120, GFP_KERNEL);
-       if (buf == NULL) {
-               dev_err(go->dev,
-                       "unable to allocate 5120 bytes for firmware construction\n");
+       if (buf == NULL)
                return -1;
-       }
+
        framelen[0] = mpeg1_frame_header(go, buf, 0, 1, PFRAME);
        if (go->interlace_coding)
                framelen[0] += mpeg1_frame_header(go, buf + framelen[0] / 8,
        int i, off = 0, chunk;
 
        buf = kzalloc(5120, GFP_KERNEL);
-       if (buf == NULL) {
-               dev_err(go->dev,
-                       "unable to allocate 5120 bytes for firmware construction\n");
+       if (buf == NULL)
                return -1;
-       }
+
        framelen[0] = mpeg4_frame_header(go, buf, 0, PFRAME);
        i = 368;
        framelen[1] = mpeg4_frame_header(go, buf + i, 0, BFRAME_PRE);
                return -1;
        }
        code = kzalloc(codespace * 2, GFP_KERNEL);
-       if (code == NULL) {
-               dev_err(go->dev,
-                       "unable to allocate %d bytes for firmware construction\n",
-                       codespace * 2);
+       if (code == NULL)
                goto fw_failed;
-       }
+
        src = (__le16 *)fw_entry->data;
        srclen = fw_entry->size / 2;
        while (srclen >= 2) {
 
 
        /* Allocate dev data structure */
        s = kmalloc(sizeof(device_extension_t), GFP_KERNEL);
-       if (s == NULL) {
-               dev_err(&interface->dev, "Out of memory\n");
+       if (s == NULL)
                goto failed;
-       }
+
        s2250_dev_table[minor] = s;
 
        dev_info(&interface->dev,
 
 
        context = kzalloc(sizeof(struct imon_context), GFP_KERNEL);
        if (!context) {
-               dev_err(dev, "%s: kzalloc failed for context\n", __func__);
                alloc_status = 1;
                goto alloc_status_switch;
        }
 
        driver = kzalloc(sizeof(struct lirc_driver), GFP_KERNEL);
        if (!driver) {
-               dev_err(dev, "%s: kzalloc failed for lirc_driver\n", __func__);
                alloc_status = 2;
                goto alloc_status_switch;
        }
        rbuf = kmalloc(sizeof(struct lirc_buffer), GFP_KERNEL);
        if (!rbuf) {
-               dev_err(dev, "%s: kmalloc failed for lirc_buffer\n", __func__);
                alloc_status = 3;
                goto alloc_status_switch;
        }
 
 
        context = kzalloc(sizeof(struct sasem_context), GFP_KERNEL);
        if (!context) {
-               dev_err(&interface->dev,
-                       "%s: kzalloc failed for context\n", __func__);
                alloc_status = 1;
                goto alloc_status_switch;
        }
        driver = kzalloc(sizeof(struct lirc_driver), GFP_KERNEL);
        if (!driver) {
-               dev_err(&interface->dev,
-                       "%s: kzalloc failed for lirc_driver\n", __func__);
                alloc_status = 2;
                goto alloc_status_switch;
        }
        rbuf = kmalloc(sizeof(struct lirc_buffer), GFP_KERNEL);
        if (!rbuf) {
-               dev_err(&interface->dev,
-                       "%s: kmalloc failed for lirc_buffer\n", __func__);
                alloc_status = 3;
                goto alloc_status_switch;
        }