lkml.org 
[lkml]   [2007]   [Sep]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectRe: [42/50] Fix ipv6 source address handling.

    can't we also decrease the number of brackets here?

    --- a/net/ipv6/addrconf.c
    +++ b/net/ipv6/addrconf.c
    @@ -1021,7 +1021,7 @@ int ipv6_dev_get_saddr(struct net_device
    hiscore.rule++;
    }
    if (ipv6_saddr_preferred(score.addr_type) ||
    - (((ifa_result->flags &
    + (((ifa->flags &
    (IFA_F_DEPRECATED|IFA_F_OPTIMISTIC)) == 0))) {

    make this like this
    if (ipv6_saddr_preferred(score.addr_type) ||
    (ifa->flags &
    (IFA_F_DEPRECATED|IFA_F_OPTIMISTIC)) == 0) {
    or even for clarity's sake:
    if (ipv6_saddr_preferred(score.addr_type) ||
    (ifa->flags & (IFA_F_DEPRECATED|IFA_F_OPTIMISTIC)) == 0) {
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/
    \
     
     \ /
      Last update: 2007-09-25 00:09    [W:0.019 / U:31.636 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site