Changeset 1b20da0 in mainline for kernel/test/cht


Ignore:
Timestamp:
2018-02-28T17:52:03Z (7 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3061bc1
Parents:
df6ded8
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:26:03)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:52:03)
Message:

style: Remove trailing whitespace on non-empty lines, in certain file types.

Command used: tools/srepl '\([^[:space:]]\)\s\+$' '\1' -- *.c *.h *.py *.sh *.s *.S *.ag

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/test/cht/cht1.c

    rdf6ded8 r1b20da0  
    180180                if (val->unique_id != v[0]->unique_id)
    181181                        return "Found item with a different key.";
    182                 if (val->mark) 
     182                if (val->mark)
    183183                        return "Found twice the same node.";
    184184                val->mark = true;
     
    186186       
    187187        for (int i = 0; i < 3; ++i) {
    188                 if (!v[i]->mark) 
     188                if (!v[i]->mark)
    189189                        return "Did not find all duplicates";
    190190               
     
    306306        .equal = stress_equal,
    307307        .key_equal = stress_key_equal,
    308         .remove_callback = stress_rm_callback   
     308        .remove_callback = stress_rm_callback
    309309};
    310310
     
    319319                        if (!s) {
    320320                                TPRINTF("[out-of-mem]\n");
    321                                 goto out_of_mem;                               
     321                                goto out_of_mem;
    322322                        }
    323323                       
     
    405405                                        rcu_read_lock();
    406406                                        cht_link_t *dup;
    407                                         if (!cht_insert_unique(work->h, &work->elem[elem_idx].link, 
     407                                        if (!cht_insert_unique(work->h, &work->elem[elem_idx].link,
    408408                                                &dup)) {
    409409                                                TPRINTF("Err: already inserted\n");
     
    419419                } else {
    420420                        rcu_read_lock();
    421                         cht_link_t *item = 
     421                        cht_link_t *item =
    422422                                cht_find(work->h, (void*)work->elem[elem_idx].key);
    423423                        rcu_read_unlock();
     
    525525                if (i < op_thread_cnt)
    526526                        thr[i] = thread_create(op_stresser, &pwork[i], TASK, 0, "cht-op-stress");
    527                 else 
     527                else
    528528                        thr[i] = thread_create(resize_stresser, &pwork[i], TASK, 0, "cht-resize");
    529529               
     
    567567        printf("Basic sanity test: ok.\n");
    568568       
    569         if (!do_stress()) 
     569        if (!do_stress())
    570570                return "CHT stress test failed.";
    571571        else
Note: See TracChangeset for help on using the changeset viewer.