lkml.org 
[lkml]   [2008]   [Sep]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC 4/4] switch non-standard SYSCALL_VECTOR allocation to use vector_irq[]

* Dean Nelson <dcn@sgi.com> wrote:

> + ret = __grab_irq_vector(NON_IRQ_DESC, syscall_vector,
> + &cpu_possible_map);
> + spin_unlock_irqrestore(&vector_lock, flags);
> + if (ret == false) {
> + printk("lg: couldn't reserve syscall %u\n",
> + syscall_vector);
> + return -EBUSY;
> + }

please use __grab_irq_vector() to standard return type: -EINVAL (or
-EBUSY) on failure, vector on success. That will get rid of the 'ret ==
false' ugliness too.

Ingo


\
 
 \ /
  Last update: 2008-09-14 17:45    [W:0.101 / U:0.680 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site