diff mbox

Braino in attribute_packed()

Message ID E1LhQct-0006sH-5W@ZenIV.linux.org.uk (mailing list archive)
State Mainlined, archived
Headers show

Commit Message

Al Viro March 11, 2009, 3:45 p.m. UTC
D'oh...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---
 parse.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Christopher Li March 11, 2009, 7:39 p.m. UTC | #1
All applied.

Thanks!

Chris

On Wed, Mar 11, 2009 at 8:45 AM, Al Viro <viro@ftp.linux.org.uk> wrote:
>
> D'oh...
>
> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
> ---
>  parse.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/parse.c b/parse.c
> index f16d321..e2b47e3 100644
> --- a/parse.c
> +++ b/parse.c
> @@ -943,7 +943,7 @@ static struct token *ignore_attribute(struct token *token, struct symbol *attr,
>
>  static struct token *attribute_packed(struct token *token, struct symbol *attr, struct decl_state *ctx)
>  {
> -       if (!&ctx->ctype.alignment)
> +       if (!ctx->ctype.alignment)
>                ctx->ctype.alignment = 1;
>        return token;
>  }
> --
> 1.5.6.5
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/parse.c b/parse.c
index f16d321..e2b47e3 100644
--- a/parse.c
+++ b/parse.c
@@ -943,7 +943,7 @@  static struct token *ignore_attribute(struct token *token, struct symbol *attr,
 
 static struct token *attribute_packed(struct token *token, struct symbol *attr, struct decl_state *ctx)
 {
-	if (!&ctx->ctype.alignment)
+	if (!ctx->ctype.alignment)
 		ctx->ctype.alignment = 1;
 	return token;
 }