diff options
author | Marin Ramesa <mpr@hi.t-com.hr> | 2013-11-10 22:50:20 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-11-10 22:57:59 +0100 |
commit | 7f200574a3b2a6bace24735a8fc11acfda1ecf1a (patch) | |
tree | a3275ba3d169689407572f2f7fc50e71628db4f0 | |
parent | 306d4abeb55cd8962e858563e24e5a5b8504edaa (diff) |
kern: comment unused variable
Variable reply_port is never used. There is indication in the comments
that it might be used in future function call, so comment it.
* kern/ipc_mig.c (syscall_device_writev_request): Comment variable.
-rw-r--r-- | kern/ipc_mig.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/kern/ipc_mig.c b/kern/ipc_mig.c index e1532ac..2d93eaa 100644 --- a/kern/ipc_mig.c +++ b/kern/ipc_mig.c @@ -979,7 +979,7 @@ syscall_device_writev_request(mach_port_t device_name, vm_size_t iocount) { device_t dev; - ipc_port_t reply_port; + /*ipc_port_t reply_port;*/ io_return_t res; /* @@ -1000,9 +1000,10 @@ syscall_device_writev_request(mach_port_t device_name, /* * Translate reply port. */ - if (reply_name == MACH_PORT_NULL) + /*if (reply_name == MACH_PORT_NULL) reply_port = IP_NULL; - else { + */ + if (reply_name != MACH_PORT_NULL) { /* Homey don't play that. */ device_deallocate(dev); return KERN_INVALID_RIGHT; |