lkml.org 
[lkml]   [2013]   [May]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/8] rsxx: Adding in debugfs entries.
On Thu, May 02, 2013 at 10:03:25AM +0200, Jens Axboe wrote:
> On Wed, May 01 2013, Philip J. Kelleher wrote:
> > #define NO_LEGACY 0
> > +#define DEBUGFS_NULL NULL
> >
> > +static struct dentry *rsxx_debugfs_root = DEBUGFS_NULL;
>
> What's the point of DEBUGFS_NULL?

Well, orginally, I had rsxx_debugfs_root initialized to NULL but
the checkpatch script told me not to initialize directly with 0
or NULL. So my solution is the #define macro.

>
> --
> Jens Axboe
>


Thanks
-Philip Kelleher



\
 
 \ /
  Last update: 2013-05-02 16:42    [W:0.058 / U:0.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site