aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/rtlx.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/kernel/rtlx.c')
-rw-r--r--arch/mips/kernel/rtlx.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/arch/mips/kernel/rtlx.c b/arch/mips/kernel/rtlx.c
index b8c18dcdd2c4..ce72bfff5e29 100644
--- a/arch/mips/kernel/rtlx.c
+++ b/arch/mips/kernel/rtlx.c
@@ -252,12 +252,12 @@ int rtlx_release(int index)
252 252
253unsigned int rtlx_read_poll(int index, int can_sleep) 253unsigned int rtlx_read_poll(int index, int can_sleep)
254{ 254{
255 struct rtlx_channel *chan; 255 struct rtlx_channel *chan;
256 256
257 if (rtlx == NULL) 257 if (rtlx == NULL)
258 return 0; 258 return 0;
259 259
260 chan = &rtlx->channel[index]; 260 chan = &rtlx->channel[index];
261 261
262 /* data available to read? */ 262 /* data available to read? */
263 if (chan->lx_read == chan->lx_write) { 263 if (chan->lx_read == chan->lx_write) {
@@ -451,8 +451,8 @@ static ssize_t file_write(struct file *file, const char __user * buffer,
451 return -EAGAIN; 451 return -EAGAIN;
452 452
453 __wait_event_interruptible(channel_wqs[minor].rt_queue, 453 __wait_event_interruptible(channel_wqs[minor].rt_queue,
454 rtlx_write_poll(minor), 454 rtlx_write_poll(minor),
455 ret); 455 ret);
456 if (ret) 456 if (ret)
457 return ret; 457 return ret;
458 } 458 }
@@ -462,11 +462,11 @@ static ssize_t file_write(struct file *file, const char __user * buffer,
462 462
463static const struct file_operations rtlx_fops = { 463static const struct file_operations rtlx_fops = {
464 .owner = THIS_MODULE, 464 .owner = THIS_MODULE,
465 .open = file_open, 465 .open = file_open,
466 .release = file_release, 466 .release = file_release,
467 .write = file_write, 467 .write = file_write,
468 .read = file_read, 468 .read = file_read,
469 .poll = file_poll, 469 .poll = file_poll,
470 .llseek = noop_llseek, 470 .llseek = noop_llseek,
471}; 471};
472 472