summaryrefslogtreecommitdiffstats
path: root/src/dispatch.c
diff options
context:
space:
mode:
authorGravatar Stefan Richter 2008-12-02 12:48:23 +0100
committerGravatar Dan Dennedy 2008-12-03 19:56:36 -0800
commitfbe1fa46c66d45af8fb93cf82d4d4344cc6d431b (patch)
tree9045df29caacc8efcd99c4792b2b0825cb2a3eed /src/dispatch.c
parent[libraw1394 patch] Fix raw1394_channel_modify() on firewire-core (diff)
[libraw1394 patch] Unify {ieee1394,fw}_bandwidth_modify()
because they do the same. We only may want a separate fw_bandwidth_modify() in the future when firewire-core gains a special ioctl() for that. (Not runtime-tested, but it looks good to me.) Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de> Signed-off-by: Dan Dennedy <dan@dennedy.org>
Diffstat (limited to 'src/dispatch.c')
-rw-r--r--src/dispatch.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/dispatch.c b/src/dispatch.c
index b5b123e..49ceca2 100644
--- a/src/dispatch.c
+++ b/src/dispatch.c
@@ -541,10 +541,7 @@ int raw1394_bandwidth_modify (raw1394handle_t handle, unsigned int bandwidth,
errno = EINVAL;
return -1;
}
- if (handle->is_fw)
- return fw_bandwidth_modify(handle, bandwidth, mode);
- else
- return ieee1394_bandwidth_modify(handle, bandwidth, mode);
+ return ieee1394_bandwidth_modify(handle, bandwidth, mode);
}
int raw1394_channel_modify (raw1394handle_t handle, unsigned int channel,