diff options
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/crypto/zcrypt_api.c | 1 | ||||
-rw-r--r-- | drivers/s390/net/lcs.c | 6 |
2 files changed, 2 insertions, 5 deletions
diff --git a/drivers/s390/crypto/zcrypt_api.c b/drivers/s390/crypto/zcrypt_api.c index b9e59bc9435a..2c785148d21e 100644 --- a/drivers/s390/crypto/zcrypt_api.c +++ b/drivers/s390/crypto/zcrypt_api.c | |||
@@ -1063,7 +1063,6 @@ int __init zcrypt_api_init(void) | |||
1063 | rc = -ENOMEM; | 1063 | rc = -ENOMEM; |
1064 | goto out_misc; | 1064 | goto out_misc; |
1065 | } | 1065 | } |
1066 | zcrypt_entry->nlink = 1; | ||
1067 | zcrypt_entry->data = NULL; | 1066 | zcrypt_entry->data = NULL; |
1068 | zcrypt_entry->read_proc = zcrypt_status_read; | 1067 | zcrypt_entry->read_proc = zcrypt_status_read; |
1069 | zcrypt_entry->write_proc = zcrypt_status_write; | 1068 | zcrypt_entry->write_proc = zcrypt_status_write; |
diff --git a/drivers/s390/net/lcs.c b/drivers/s390/net/lcs.c index b97dd15bdb9a..ecca1046714e 100644 --- a/drivers/s390/net/lcs.c +++ b/drivers/s390/net/lcs.c | |||
@@ -1511,8 +1511,7 @@ lcs_txbuffer_cb(struct lcs_channel *channel, struct lcs_buffer *buffer) | |||
1511 | LCS_DBF_TEXT(5, trace, "txbuffcb"); | 1511 | LCS_DBF_TEXT(5, trace, "txbuffcb"); |
1512 | /* Put buffer back to pool. */ | 1512 | /* Put buffer back to pool. */ |
1513 | lcs_release_buffer(channel, buffer); | 1513 | lcs_release_buffer(channel, buffer); |
1514 | card = (struct lcs_card *) | 1514 | card = container_of(channel, struct lcs_card, write); |
1515 | ((char *) channel - offsetof(struct lcs_card, write)); | ||
1516 | if (netif_queue_stopped(card->dev) && netif_carrier_ok(card->dev)) | 1515 | if (netif_queue_stopped(card->dev) && netif_carrier_ok(card->dev)) |
1517 | netif_wake_queue(card->dev); | 1516 | netif_wake_queue(card->dev); |
1518 | spin_lock(&card->lock); | 1517 | spin_lock(&card->lock); |
@@ -1810,8 +1809,7 @@ lcs_get_frames_cb(struct lcs_channel *channel, struct lcs_buffer *buffer) | |||
1810 | LCS_DBF_TEXT(4, trace, "-eiogpkt"); | 1809 | LCS_DBF_TEXT(4, trace, "-eiogpkt"); |
1811 | return; | 1810 | return; |
1812 | } | 1811 | } |
1813 | card = (struct lcs_card *) | 1812 | card = container_of(channel, struct lcs_card, read); |
1814 | ((char *) channel - offsetof(struct lcs_card, read)); | ||
1815 | offset = 0; | 1813 | offset = 0; |
1816 | while (lcs_hdr->offset != 0) { | 1814 | while (lcs_hdr->offset != 0) { |
1817 | if (lcs_hdr->offset <= 0 || | 1815 | if (lcs_hdr->offset <= 0 || |