Changeset 1433ecda in mainline for kernel/generic/src/cpu/cpu.c


Ignore:
Timestamp:
2018-04-04T15:42:37Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2c4e1cc
Parents:
47b2d7e3
Message:

Fix cstyle: make ccheck-fix and commit only files where all the changes are good.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/cpu/cpu.c

    r47b2d7e3 r1433ecda  
    5959 *
    6060 */
    61 void cpu_init(void) {
     61void cpu_init(void)
     62{
    6263#ifdef CONFIG_SMP
    6364        if (config.cpu_active == 1) {
    6465#endif /* CONFIG_SMP */
    6566
    66                 cpus = (cpu_t *) malloc(sizeof(cpu_t) * config.cpu_count,
     67                cpus = (cpu_t *) malloc(sizeof(cpu_t) *config.cpu_count,
    6768                    FRAME_ATOMIC);
    6869                if (!cpus)
     
    7071
    7172                /* Initialize everything */
    72                 memsetb(cpus, sizeof(cpu_t) * config.cpu_count, 0);
     73                memsetb(cpus, sizeof(cpu_t) *config.cpu_count, 0);
    7374
    7475                size_t i;
Note: See TracChangeset for help on using the changeset viewer.