HSI: hsi_char: Delete an error message for a failed memory allocation in hsc_probe()
[sfrench/cifs-2.6.git] / drivers / hsi / clients / hsi_char.c
index cf9c2a332ad8c1c6e5721733783172549d2e55f6..9d2a6d64dfb80c0dedbd472a1df9d4f38d540539 100644 (file)
@@ -697,10 +697,9 @@ static int hsc_probe(struct device *dev)
        int i;
 
        cl_data = kzalloc(sizeof(*cl_data), GFP_KERNEL);
-       if (!cl_data) {
-               dev_err(dev, "Could not allocate hsc_client_data\n");
+       if (!cl_data)
                return -ENOMEM;
-       }
+
        hsc_baseminor = HSC_BASEMINOR(hsi_id(cl), hsi_port_id(cl));
        if (!hsc_major) {
                ret = alloc_chrdev_region(&hsc_dev, hsc_baseminor,