lkml.org 
[lkml]   [2008]   [Dec]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] x86: cpuid.c fix style problems
    On Wed, Dec 31, 2008 at 12:59 PM, Jaswinder Singh Rajput
    <jaswinder@infradead.org> wrote:
    > cpu = iminor(file->f_path.dentry->d_inode);
    > - if (cpu >= NR_CPUS || !cpu_online(cpu)) {
    > + if (cpu >= num_possible_cpus() || !cpu_online(cpu)) {

    How come you didn't convert the first part of the expression to use
    cpu_possible()?

    > ret = -ENXIO; /* No such CPU */
    > goto out;
    > }


    \
     
     \ /
      Last update: 2008-12-31 14:03    [W:0.022 / U:29.828 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site