Johannes Berg 4c121fd690 mac80211: use offsetofend()
This was created using the following spatch:
    @find@
    type S;
    expression M, M2;
    position p;
    @@
    offsetof(S, M) + sizeof(M2)@p

    @script:python@
    m << find.M;
    m2 << find.M2;
    @@
    if not m2.endswith('-> ' + m):
            cocci.include_match(False)

    @change@
    type find.S;
    expression find.M, find.M2;
    position find.p;
    @@
    -offsetof(S, M) + sizeof(M2)@p
    +offsetofend(S, M)

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-09-21 11:42:01 +02:00
..
2014-11-04 13:18:21 +01:00
2014-04-09 14:49:43 +02:00
2017-02-10 14:31:51 -05:00
2015-05-11 19:16:04 +02:00
2017-09-21 11:42:01 +02:00
2017-09-21 11:42:01 +02:00
2017-09-21 11:42:01 +02:00
2014-04-09 14:49:43 +02:00
2017-09-05 11:28:43 +02:00
2017-09-21 11:42:01 +02:00
2012-03-13 14:54:16 -04:00