Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1478390
| From | Masahiro Yamada <yamada.masahiro@socionext.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] drm: squash lines for simple wrapper functions |
| Date | 2016-09-07 17:10 +0200 |
| Message-ID | <seMEa-1mo-27@gated-at.bofh.it> (permalink) |
| References | <sexF7-95-21@gated-at.bofh.it> <seGyJ-5Nh-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi Jani,
2016-09-07 17:34 GMT+09:00 Jani Nikula <jani.nikula@linux.intel.com>:
> On Wed, 07 Sep 2016, Masahiro Yamada <yamada.masahiro@socionext.com> wrote:
>> Remove unneeded variables and assignments.
>>
>> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
>
> ...
>
>> diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
>> index 95ddd56..59d029d 100644
>> --- a/drivers/gpu/drm/i915/i915_drv.c
>> +++ b/drivers/gpu/drm/i915/i915_drv.c
>> @@ -1361,13 +1361,7 @@ void i915_driver_unload(struct drm_device *dev)
>>
>> static int i915_driver_open(struct drm_device *dev, struct drm_file *file)
>> {
>> - int ret;
>> -
>> - ret = i915_gem_open(dev, file);
>> - if (ret)
>> - return ret;
>> -
>> - return 0;
>> + return i915_gem_open(dev, file);
>> }
>
> Seems to me the whole function could be replaced by a direct use of
> i915_gem_open().
Good catch.
Shall I send v2?
Or, should it be done in a separate follow-up patch?
(I hope you can do it in this case.)
--
Best Regards
Masahiro Yamada
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] drm: squash lines for simple wrapper functions Masahiro Yamada <yamada.masahiro@socionext.com> - 2016-09-07 01:10 +0200
Re: [PATCH] drm: squash lines for simple wrapper functions Jani Nikula <jani.nikula@linux.intel.com> - 2016-09-07 10:40 +0200
Re: [PATCH] drm: squash lines for simple wrapper functions Masahiro Yamada <yamada.masahiro@socionext.com> - 2016-09-07 17:10 +0200
RE: [PATCH] drm: squash lines for simple wrapper functions "Deucher, Alexander" <Alexander.Deucher@amd.com> - 2016-09-07 17:40 +0200
csiph-web