Skip to content

Commit 2bcfcbf

Browse files
paulmcquadatseanpaul
authored andcommitted
drm: dma_bufs: Fixed checkpatch issues
Fix a couple of checkpatch issues Signed-off-by: Paul McQuade <paulmcquad@gmail.com> [seanpaul squashed series of 4 into one patch, and changed commit msg] Signed-off-by: Sean Paul <seanpaul@chromium.org> Link: https://patchwork.freedesktop.org/patch/msgid/20180319005225.1545-1-paulmcquad@gmail.com
1 parent e007488 commit 2bcfcbf

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

‎drivers/gpu/drm/drm_bufs.c‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,10 @@ static int drm_map_handle(struct drm_device *dev, struct drm_hash_item *hash,
129129
* type. Adds the map to the map list drm_device::maplist. Adds MTRR's where
130130
* applicable and if supported by the kernel.
131131
*/
132-
static int drm_addmap_core(struct drm_device * dev, resource_size_t offset,
132+
static int drm_addmap_core(struct drm_device *dev, resource_size_t offset,
133133
unsigned int size, enum drm_map_type type,
134134
enum drm_map_flags flags,
135-
struct drm_map_list ** maplist)
135+
struct drm_map_list **maplist)
136136
{
137137
struct drm_local_map *map;
138138
struct drm_map_list *list;
@@ -224,7 +224,7 @@ static int drm_addmap_core(struct drm_device * dev, resource_size_t offset,
224224
case _DRM_SHM:
225225
list = drm_find_matching_map(dev, map);
226226
if (list != NULL) {
227-
if(list->map->size != map->size) {
227+
if (list->map->size != map->size) {
228228
DRM_DEBUG("Matching maps of type %d with "
229229
"mismatched sizes, (%ld vs %ld)\n",
230230
map->type, map->size, list->map->size);
@@ -361,7 +361,7 @@ static int drm_addmap_core(struct drm_device * dev, resource_size_t offset,
361361
return 0;
362362
}
363363

364-
int drm_legacy_addmap(struct drm_device * dev, resource_size_t offset,
364+
int drm_legacy_addmap(struct drm_device *dev, resource_size_t offset,
365365
unsigned int size, enum drm_map_type type,
366366
enum drm_map_flags flags, struct drm_local_map **map_ptr)
367367
{
@@ -637,8 +637,8 @@ int drm_legacy_rmmap_ioctl(struct drm_device *dev, void *data,
637637
*
638638
* Frees any pages and buffers associated with the given entry.
639639
*/
640-
static void drm_cleanup_buf_error(struct drm_device * dev,
641-
struct drm_buf_entry * entry)
640+
static void drm_cleanup_buf_error(struct drm_device *dev,
641+
struct drm_buf_entry *entry)
642642
{
643643
int i;
644644

@@ -1446,8 +1446,8 @@ int drm_legacy_freebufs(struct drm_device *dev, void *data,
14461446
int __drm_legacy_mapbufs(struct drm_device *dev, void *data, int *p,
14471447
void __user **v,
14481448
int (*f)(void *, int, unsigned long,
1449-
struct drm_buf *),
1450-
struct drm_file *file_priv)
1449+
struct drm_buf *),
1450+
struct drm_file *file_priv)
14511451
{
14521452
struct drm_device_dma *dma = dev->dma;
14531453
int retcode = 0;

0 commit comments

Comments
 (0)