aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/net/netiucv.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/s390/net/netiucv.c')
-rw-r--r--drivers/s390/net/netiucv.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/drivers/s390/net/netiucv.c b/drivers/s390/net/netiucv.c
index 5303aea6f4d3..3d28e1a5bf79 100644
--- a/drivers/s390/net/netiucv.c
+++ b/drivers/s390/net/netiucv.c
@@ -134,18 +134,6 @@ PRINT_##importance(header "%02x %02x %02x %02x %02x %02x %02x %02x " \
134 *(((char*)ptr)+28),*(((char*)ptr)+29), \ 134 *(((char*)ptr)+28),*(((char*)ptr)+29), \
135 *(((char*)ptr)+30),*(((char*)ptr)+31)); 135 *(((char*)ptr)+30),*(((char*)ptr)+31));
136 136
137static inline void iucv_hex_dump(unsigned char *buf, size_t len)
138{
139 size_t i;
140
141 for (i = 0; i < len; i++) {
142 if (i && !(i % 16))
143 printk("\n");
144 printk("%02x ", *(buf + i));
145 }
146 printk("\n");
147}
148
149#define PRINTK_HEADER " iucv: " /* for debugging */ 137#define PRINTK_HEADER " iucv: " /* for debugging */
150 138
151static struct device_driver netiucv_driver = { 139static struct device_driver netiucv_driver = {
@@ -280,7 +268,7 @@ static u8 iucvMagic[16] = {
280 * 268 *
281 * @returns The printable string (static data!!) 269 * @returns The printable string (static data!!)
282 */ 270 */
283static inline char *netiucv_printname(char *name) 271static char *netiucv_printname(char *name)
284{ 272{
285 static char tmp[9]; 273 static char tmp[9];
286 char *p = tmp; 274 char *p = tmp;
@@ -1730,7 +1718,7 @@ static struct attribute_group netiucv_stat_attr_group = {
1730 .attrs = netiucv_stat_attrs, 1718 .attrs = netiucv_stat_attrs,
1731}; 1719};
1732 1720
1733static inline int netiucv_add_files(struct device *dev) 1721static int netiucv_add_files(struct device *dev)
1734{ 1722{
1735 int ret; 1723 int ret;
1736 1724
@@ -1744,7 +1732,7 @@ static inline int netiucv_add_files(struct device *dev)
1744 return ret; 1732 return ret;
1745} 1733}
1746 1734
1747static inline void netiucv_remove_files(struct device *dev) 1735static void netiucv_remove_files(struct device *dev)
1748{ 1736{
1749 IUCV_DBF_TEXT(trace, 3, __FUNCTION__); 1737 IUCV_DBF_TEXT(trace, 3, __FUNCTION__);
1750 sysfs_remove_group(&dev->kobj, &netiucv_stat_attr_group); 1738 sysfs_remove_group(&dev->kobj, &netiucv_stat_attr_group);