lkml.org 
[lkml]   [2009]   [Jun]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH -tip v8 5/7] x86: add pt_regs register and stack access APIs

    * Christoph Hellwig <hch@infradead.org> wrote:

    > > + if (n < NR_REGPARMS) {
    > > + switch (n) {
    > > + case 0: return regs->ax;
    > > + case 1: return regs->dx;
    > > + case 2: return regs->cx;
    > > + }
    >
    > Normal kernel style would be
    >
    > switch (n) {
    > case 0:
    > return regs->ax;
    > case 1:
    > return regs->dx;
    > case 2:
    > return regs->cx;
    > }

    the original single-line shortcut is acceptable too.

    Ingo


    \
     
     \ /
      Last update: 2009-06-02 01:43    [W:0.051 / U:0.968 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site