Ignore:
Timestamp:
2009-04-27T14:48:51Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6568225
Parents:
43847ba
Message:

make sgcnin_init() consistent with similar driver functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/src/drivers/sgcn.c

    r43847ba r8e7afdbc  
    342342{
    343343        sgcn_buffer_begin_init();
    344 
     344       
    345345        sgcn_instance_t *instance =
    346346            malloc(sizeof(sgcn_instance_t), FRAME_ATOMIC);
    347         if (!instance)
    348                 return NULL;
    349 
    350         instance->srlnin = NULL;
    351         instance->thread = thread_create(ksgcnpoll, instance, TASK, 0,
    352             "ksgcnpoll", true);
    353         if (!instance->thread) {
    354                 free(instance);
    355                 return NULL;
     347       
     348        if (instance) {
     349                instance->srlnin = NULL;
     350                instance->thread = thread_create(ksgcnpoll, instance, TASK, 0,
     351                    "ksgcnpoll", true);
     352               
     353                if (!instance->thread) {
     354                        free(instance);
     355                        return NULL;
     356                }
    356357        }
    357358       
Note: See TracChangeset for help on using the changeset viewer.