Skip to contentSkip to conversation

Braino in attribute_packed()

PATCH Al Viro 2 participants 2 messages Mar 11, 2009 Sparse checker

lore
Share & tools
lore

Al Viro

author
#0 lore raw

D'oh...

---
 parse.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
parse.c +1 -1
index f16d321..e2b47e3 100644
@@ -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;
 }
Signature · 1 line
1.5.6.5
maintainer
#1 lore raw

All applied.

Thanks!

Chris

Quoted 24 lines · Al Viro

D'oh...

---
 parse.c |    2 +-

 1 files changed, 1 insertions(+), 1 deletions(-)
parse.c +1 -2
index f16d321..e2b47e3 100644
@@ -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

Quoted 5 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to [email protected]
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html