@@ -2242,13 +2242,9 @@ static int s2255_probe(struct usb_interface *interface,
- if (dev == NULL) {
- s2255_dev_err(&interface->dev, "out of memory\n");
+ if (!dev)
return -ENOMEM;
- }
dev->cmdbuf = kzalloc(S2255_CMDBUF_SIZE, GFP_KERNEL);
- if (dev->cmdbuf == NULL) {
- s2255_dev_err(&interface->dev, "out of memory\n");
+ if (!dev->cmdbuf)
goto errorFWDATA1;
- }
atomic_set(&dev->num_channels, 0);
dev->pid = id->idProduct;
@@ -2303,7 +2299,6 @@ static int s2255_probe(struct usb_interface *interface,
- if (!dev->fw_data->pfw_data) {
- dev_err(&interface->dev, "out of memory!\n");
+ if (!dev->fw_data->pfw_data)
goto errorFWDATA2;
- }
+
/* load the first chunk */
if (request_firmware(&dev->fw_data->fw,
FIRMWARE_FILE_NAME, &dev->udev->dev)) {