Skip to content

Commit

Permalink
qeth: dont return the return values of void functions.
Browse files Browse the repository at this point in the history
Signed-off-by: Heiko Carstens <[email protected]>
Signed-off-by: Ursula Braun <[email protected]>
Signed-off-by: Jeff Garzik <[email protected]>
  • Loading branch information
heicarst authored and Jeff Garzik committed Aug 31, 2007
1 parent cde4603 commit ecee51b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions drivers/s390/net/qeth.h
Original file line number Diff line number Diff line change
Expand Up @@ -1178,9 +1178,9 @@ qeth_ipaddr_to_string(enum qeth_prot_versions proto, const __u8 *addr,
char *buf)
{
if (proto == QETH_PROT_IPV4)
return qeth_ipaddr4_to_string(addr, buf);
qeth_ipaddr4_to_string(addr, buf);
else if (proto == QETH_PROT_IPV6)
return qeth_ipaddr6_to_string(addr, buf);
qeth_ipaddr6_to_string(addr, buf);
}

static inline int
Expand Down
8 changes: 4 additions & 4 deletions drivers/s390/net/qeth_sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -1760,10 +1760,10 @@ qeth_remove_device_attributes(struct device *dev)
{
struct qeth_card *card = dev->driver_data;

if (card->info.type == QETH_CARD_TYPE_OSN)
return sysfs_remove_group(&dev->kobj,
&qeth_osn_device_attr_group);

if (card->info.type == QETH_CARD_TYPE_OSN) {
sysfs_remove_group(&dev->kobj, &qeth_osn_device_attr_group);
return;
}
sysfs_remove_group(&dev->kobj, &qeth_device_attr_group);
sysfs_remove_group(&dev->kobj, &qeth_device_ipato_group);
sysfs_remove_group(&dev->kobj, &qeth_device_vipa_group);
Expand Down

0 comments on commit ecee51b

Please sign in to comment.