staging: most: out of memory error

If kzalloc fails it will print lots of debugging information in the log,
no need to have another in the code.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Sudip Mukherjee 2015-08-18 20:48:23 +05:30 committed by Greg Kroah-Hartman
parent ba857e0ff0
commit c704dfbe45

View File

@ -412,7 +412,6 @@ static int aim_probe(struct most_interface *iface, int channel_id,
channel = kzalloc(sizeof(*channel), GFP_KERNEL);
if (!channel) {
pr_info("failed to alloc channel object\n");
retval = -ENOMEM;
goto error_alloc_channel;
}