@@ -389,10 +389,8 @@ static void queue_bus_reset_event(struct client *client)
389389 struct bus_reset_event * e ;
390390
391391 e = kzalloc (sizeof (* e ), GFP_KERNEL );
392- if (e == NULL ) {
393- fw_notice (client -> device -> card , "out of memory when allocating event\n" );
392+ if (e == NULL )
394393 return ;
395- }
396394
397395 fill_bus_reset_event (& e -> reset , client );
398396
@@ -693,10 +691,9 @@ static void handle_request(struct fw_card *card, struct fw_request *request,
693691
694692 r = kmalloc (sizeof (* r ), GFP_ATOMIC );
695693 e = kmalloc (sizeof (* e ), GFP_ATOMIC );
696- if (r == NULL || e == NULL ) {
697- fw_notice (card , "out of memory when allocating event\n" );
694+ if (r == NULL || e == NULL )
698695 goto failed ;
699- }
696+
700697 r -> card = card ;
701698 r -> request = request ;
702699 r -> data = payload ;
@@ -930,10 +927,9 @@ static void iso_callback(struct fw_iso_context *context, u32 cycle,
930927 struct iso_interrupt_event * e ;
931928
932929 e = kmalloc (sizeof (* e ) + header_length , GFP_ATOMIC );
933- if (e == NULL ) {
934- fw_notice (context -> card , "out of memory when allocating event\n" );
930+ if (e == NULL )
935931 return ;
936- }
932+
937933 e -> interrupt .type = FW_CDEV_EVENT_ISO_INTERRUPT ;
938934 e -> interrupt .closure = client -> iso_closure ;
939935 e -> interrupt .cycle = cycle ;
@@ -950,10 +946,9 @@ static void iso_mc_callback(struct fw_iso_context *context,
950946 struct iso_interrupt_mc_event * e ;
951947
952948 e = kmalloc (sizeof (* e ), GFP_ATOMIC );
953- if (e == NULL ) {
954- fw_notice (context -> card , "out of memory when allocating event\n" );
949+ if (e == NULL )
955950 return ;
956- }
951+
957952 e -> interrupt .type = FW_CDEV_EVENT_ISO_INTERRUPT_MULTICHANNEL ;
958953 e -> interrupt .closure = client -> iso_closure ;
959954 e -> interrupt .completed = fw_iso_buffer_lookup (& client -> buffer ,
@@ -1581,10 +1576,9 @@ void fw_cdev_handle_phy_packet(struct fw_card *card, struct fw_packet *p)
15811576
15821577 list_for_each_entry (client , & card -> phy_receiver_list , phy_receiver_link ) {
15831578 e = kmalloc (sizeof (* e ) + 8 , GFP_ATOMIC );
1584- if (e == NULL ) {
1585- fw_notice (card , "out of memory when allocating event\n" );
1579+ if (e == NULL )
15861580 break ;
1587- }
1581+
15881582 e -> phy_packet .closure = client -> phy_receiver_closure ;
15891583 e -> phy_packet .type = FW_CDEV_EVENT_PHY_PACKET_RECEIVED ;
15901584 e -> phy_packet .rcode = RCODE_COMPLETE ;
0 commit comments