Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 27386
b: refs/heads/master
c: 983f27d
h: refs/heads/master
v: v3
  • Loading branch information
Jeff Garzik committed May 27, 2006
1 parent 17faabb commit 844dd8a
Show file tree
Hide file tree
Showing 16 changed files with 633 additions and 625 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: de1e938e54deba5b093a3074dfafd0d11afacbe1
refs/heads/master: 983f27d37d4fc72c252835cb2ee3103b360735a6
26 changes: 13 additions & 13 deletions trunk/drivers/s390/net/ctcmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -1481,13 +1481,13 @@ ch_action_iofatal(fsm_instance * fi, int event, void *arg)
}
}

static void
static void
ch_action_reinit(fsm_instance *fi, int event, void *arg)
{
struct channel *ch = (struct channel *)arg;
struct net_device *dev = ch->netdev;
struct ctc_priv *privptr = dev->priv;

DBF_TEXT(trace, 4, __FUNCTION__);
ch_action_iofatal(fi, event, arg);
fsm_addtimer(&privptr->restart_timer, 1000, DEV_EVENT_RESTART, dev);
Expand Down Expand Up @@ -1619,7 +1619,7 @@ less_than(char *id1, char *id2)
}
dev1 = simple_strtoul(id1, &id1, 16);
dev2 = simple_strtoul(id2, &id2, 16);

return (dev1 < dev2);
}

Expand Down Expand Up @@ -1890,7 +1890,7 @@ ctc_irq_handler(struct ccw_device *cdev, unsigned long intparm, struct irb *irb)
irb->scsw.dstat);
return;
}

priv = ((struct ccwgroup_device *)cdev->dev.driver_data)
->dev.driver_data;

Expand All @@ -1904,7 +1904,7 @@ ctc_irq_handler(struct ccw_device *cdev, unsigned long intparm, struct irb *irb)
"device %s\n", cdev->dev.bus_id);
return;
}

dev = (struct net_device *) (ch->netdev);
if (dev == NULL) {
ctc_pr_crit("ctc: ctc_irq_handler dev=NULL bus_id=%s, ch=0x%p\n",
Expand Down Expand Up @@ -2003,12 +2003,12 @@ dev_action_stop(fsm_instance * fi, int event, void *arg)
fsm_event(ch->fsm, CH_EVENT_STOP, ch);
}
}
static void
static void
dev_action_restart(fsm_instance *fi, int event, void *arg)
{
struct net_device *dev = (struct net_device *)arg;
struct ctc_priv *privptr = dev->priv;

DBF_TEXT(trace, 3, __FUNCTION__);
ctc_pr_debug("%s: Restarting\n", dev->name);
dev_action_stop(fi, event, arg);
Expand Down Expand Up @@ -2179,7 +2179,7 @@ transmit_skb(struct channel *ch, struct sk_buff *skb)

DBF_TEXT(trace, 5, __FUNCTION__);
/* we need to acquire the lock for testing the state
* otherwise we can have an IRQ changing the state to
* otherwise we can have an IRQ changing the state to
* TXIDLE after the test but before acquiring the lock.
*/
spin_lock_irqsave(&ch->collect_lock, saveflags);
Expand Down Expand Up @@ -2379,7 +2379,7 @@ ctc_tx(struct sk_buff *skb, struct net_device * dev)

/**
* If channels are not running, try to restart them
* and throw away packet.
* and throw away packet.
*/
if (fsm_getstate(privptr->fsm) != DEV_STATE_RUNNING) {
fsm_event(privptr->fsm, DEV_EVENT_START, dev);
Expand Down Expand Up @@ -2717,7 +2717,7 @@ ctc_remove_files(struct device *dev)
/**
* Add ctc specific attributes.
* Add ctc private data.
*
*
* @param cgdev pointer to ccwgroup_device just added
*
* @returns 0 on success, !0 on failure.
Expand Down Expand Up @@ -2848,7 +2848,7 @@ ctc_new_device(struct ccwgroup_device *cgdev)
DBF_TEXT(setup, 3, buffer);

type = get_channel_type(&cgdev->cdev[0]->id);

snprintf(read_id, CTC_ID_SIZE, "ch-%s", cgdev->cdev[0]->dev.bus_id);
snprintf(write_id, CTC_ID_SIZE, "ch-%s", cgdev->cdev[1]->dev.bus_id);

Expand Down Expand Up @@ -2883,7 +2883,7 @@ ctc_new_device(struct ccwgroup_device *cgdev)
channel_get(type, direction == READ ? read_id : write_id,
direction);
if (privptr->channel[direction] == NULL) {
if (direction == WRITE)
if (direction == WRITE)
channel_free(privptr->channel[READ]);

ctc_free_netdevice(dev, 1);
Expand Down Expand Up @@ -2931,7 +2931,7 @@ ctc_shutdown_device(struct ccwgroup_device *cgdev)
{
struct ctc_priv *priv;
struct net_device *ndev;

DBF_TEXT(setup, 3, __FUNCTION__);
pr_debug("%s() called\n", __FUNCTION__);

Expand Down
10 changes: 5 additions & 5 deletions trunk/drivers/s390/net/cu3088.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
*/


#include <linux/init.h>
#include <linux/module.h>
#include <linux/err.h>
Expand Down Expand Up @@ -77,7 +77,7 @@ group_write(struct device_driver *drv, const char *buf, size_t count)
int len;

if (!(end = strchr(start, delim[i])))
return count;
return -EINVAL;
len = min_t(ptrdiff_t, BUS_ID_SIZE, end - start + 1);
strlcpy (bus_ids[i], start, len);
argv[i] = bus_ids[i];
Expand All @@ -94,7 +94,7 @@ static DRIVER_ATTR(group, 0200, NULL, group_write);

/* Register-unregister for ctc&lcs */
int
register_cu3088_discipline(struct ccwgroup_driver *dcp)
register_cu3088_discipline(struct ccwgroup_driver *dcp)
{
int rc;

Expand All @@ -109,7 +109,7 @@ register_cu3088_discipline(struct ccwgroup_driver *dcp)
rc = driver_create_file(&dcp->driver, &driver_attr_group);
if (rc)
ccwgroup_driver_unregister(dcp);

return rc;

}
Expand Down Expand Up @@ -137,7 +137,7 @@ static int __init
cu3088_init (void)
{
int rc;

cu3088_root_dev = s390_root_dev_register("cu3088");
if (IS_ERR(cu3088_root_dev))
return PTR_ERR(cu3088_root_dev);
Expand Down
36 changes: 18 additions & 18 deletions trunk/drivers/s390/net/iucv.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
* IUCV network driver
*
* Copyright (C) 2001 IBM Deutschland Entwicklung GmbH, IBM Corporation
Expand Down Expand Up @@ -28,7 +28,7 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
*/


/* #define DEBUG */

#include <linux/module.h>
Expand Down Expand Up @@ -81,7 +81,7 @@ iucv_bus_match (struct device *dev, struct device_driver *drv)
struct bus_type iucv_bus = {
.name = "iucv",
.match = iucv_bus_match,
};
};

struct device *iucv_root;

Expand Down Expand Up @@ -297,7 +297,7 @@ MODULE_LICENSE("GPL");
/*
* Debugging stuff
*******************************************************************************/



#ifdef DEBUG
static int debuglevel = 0;
Expand Down Expand Up @@ -344,7 +344,7 @@ do { \
/*
* Internal functions
*******************************************************************************/


/**
* print start banner
*/
Expand Down Expand Up @@ -810,7 +810,7 @@ iucv_register_program (__u8 pgmname[16],
sizeof (new_handler->id.userid));
EBC_TOUPPER (new_handler->id.userid,
sizeof (new_handler->id.userid));

if (pgmmask) {
memcpy (new_handler->id.mask, pgmmask,
sizeof (new_handler->id.mask));
Expand Down Expand Up @@ -1229,7 +1229,7 @@ iucv_purge (__u16 pathid, __u32 msgid, __u32 srccls, __u32 *audit)
/* parm->ipaudit has only 3 bytes */
*audit >>= 8;
}

release_param(parm);

iucv_debug(1, "b2f0_result = %ld", b2f0_result);
Expand Down Expand Up @@ -2330,14 +2330,14 @@ iucv_do_int(iucv_GeneralInterrupt * int_buf)
temp_buff1[j] &= (h->id.mask)[j];
temp_buff2[j] &= (h->id.mask)[j];
}

iucv_dumpit("temp_buff1:",
temp_buff1, sizeof(temp_buff1));
iucv_dumpit("temp_buff2",
temp_buff2, sizeof(temp_buff2));

if (!memcmp (temp_buff1, temp_buff2, 24)) {

iucv_debug(2,
"found a matching handler");
break;
Expand Down Expand Up @@ -2368,7 +2368,7 @@ iucv_do_int(iucv_GeneralInterrupt * int_buf)
} else
iucv_sever(int_buf->ippathid, no_listener);
break;

case 0x02: /*connection complete */
if (messagesDisabled) {
iucv_setmask(~0);
Expand All @@ -2387,7 +2387,7 @@ iucv_do_int(iucv_GeneralInterrupt * int_buf)
} else
iucv_sever(int_buf->ippathid, no_listener);
break;

case 0x03: /* connection severed */
if (messagesDisabled) {
iucv_setmask(~0);
Expand All @@ -2398,13 +2398,13 @@ iucv_do_int(iucv_GeneralInterrupt * int_buf)
interrupt->ConnectionSevered(
(iucv_ConnectionSevered *)int_buf,
h->pgm_data);

else
iucv_sever (int_buf->ippathid, no_listener);
} else
iucv_sever(int_buf->ippathid, no_listener);
break;

case 0x04: /* connection quiesced */
if (messagesDisabled) {
iucv_setmask(~0);
Expand All @@ -2420,7 +2420,7 @@ iucv_do_int(iucv_GeneralInterrupt * int_buf)
"ConnectionQuiesced not called");
}
break;

case 0x05: /* connection resumed */
if (messagesDisabled) {
iucv_setmask(~0);
Expand All @@ -2436,7 +2436,7 @@ iucv_do_int(iucv_GeneralInterrupt * int_buf)
"ConnectionResumed not called");
}
break;

case 0x06: /* priority message complete */
case 0x07: /* nonpriority message complete */
if (h) {
Expand All @@ -2449,7 +2449,7 @@ iucv_do_int(iucv_GeneralInterrupt * int_buf)
"MessageComplete not called");
}
break;

case 0x08: /* priority message pending */
case 0x09: /* nonpriority message pending */
if (h) {
Expand All @@ -2467,7 +2467,7 @@ iucv_do_int(iucv_GeneralInterrupt * int_buf)
__FUNCTION__);
break;
} /* end switch */

iucv_debug(2, "exiting pathid %d, type %02X",
int_buf->ippathid, int_buf->iptype);

Expand Down
Loading

0 comments on commit 844dd8a

Please sign in to comment.