diff options
Diffstat (limited to 'drivers/xen/xenbus')
-rw-r--r-- | drivers/xen/xenbus/xenbus_client.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/xen/xenbus/xenbus_client.c b/drivers/xen/xenbus/xenbus_client.c index aa9b2fcdaeb2..ca744102b666 100644 --- a/drivers/xen/xenbus/xenbus_client.c +++ b/drivers/xen/xenbus/xenbus_client.c | |||
@@ -259,7 +259,6 @@ static char *error_path(struct xenbus_device *dev) | |||
259 | static void xenbus_va_dev_error(struct xenbus_device *dev, int err, | 259 | static void xenbus_va_dev_error(struct xenbus_device *dev, int err, |
260 | const char *fmt, va_list ap) | 260 | const char *fmt, va_list ap) |
261 | { | 261 | { |
262 | int ret; | ||
263 | unsigned int len; | 262 | unsigned int len; |
264 | char *printf_buffer = NULL; | 263 | char *printf_buffer = NULL; |
265 | char *path_buffer = NULL; | 264 | char *path_buffer = NULL; |
@@ -270,9 +269,7 @@ static void xenbus_va_dev_error(struct xenbus_device *dev, int err, | |||
270 | goto fail; | 269 | goto fail; |
271 | 270 | ||
272 | len = sprintf(printf_buffer, "%i ", -err); | 271 | len = sprintf(printf_buffer, "%i ", -err); |
273 | ret = vsnprintf(printf_buffer+len, PRINTF_BUFFER_SIZE-len, fmt, ap); | 272 | vsnprintf(printf_buffer+len, PRINTF_BUFFER_SIZE-len, fmt, ap); |
274 | |||
275 | BUG_ON(len + ret > PRINTF_BUFFER_SIZE-1); | ||
276 | 273 | ||
277 | dev_err(&dev->dev, "%s\n", printf_buffer); | 274 | dev_err(&dev->dev, "%s\n", printf_buffer); |
278 | 275 | ||