Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bdabfa54 authored by Stefan Richter's avatar Stefan Richter
Browse files

firewire: core: remove an always false test



struct fw_cdev_allocate_iso_resource.bandwidth is unsigned.

Signed-off-by: default avatarStefan Richter <stefanr@s5r6.in-berlin.de>
parent df7ce663
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1366,8 +1366,7 @@ static int init_iso_resource(struct client *client,
	int ret;

	if ((request->channels == 0 && request->bandwidth == 0) ||
	    request->bandwidth > BANDWIDTH_AVAILABLE_INITIAL ||
	    request->bandwidth < 0)
	    request->bandwidth > BANDWIDTH_AVAILABLE_INITIAL)
		return -EINVAL;

	r  = kmalloc(sizeof(*r), GFP_KERNEL);